Include pyconfig h 59 fatal error c1083

I am using GNU bash on Windows 10, version 4.4.23(1)-release (x86_64-pc-msys). So I have read all the resources and installed all the tools from VS Build Tools, added the /ucrt folder to my bash pa...

I am using GNU bash on Windows 10, version 4.4.23(1)-release (x86_64-pc-msys). So I have read all the resources and installed all the tools from VS Build Tools, added the /ucrt folder to my bash path and it DOES include io.h file. I tried with multiple version of Windows SDK, they all have the io.h file. I am using Anaconda version of python, Python 3.6.6 :: Anaconda custom (64-bit), to use cythonize package and I don’t know what to do. I feel like its an issue where anaconda is communicating with bash but doesn’t know where to look for the io.h file. Shouldn’t it just look for it in my path? It works on Windows CMD but not in bash.

Here is output from console and here is my path:

bioinformatics$ cythonize -b taxcode.pyx
running build_ext
building 'taxcode' extension
C:Program Files (x86)Microsoft Visual Studio2017BuildToolsVCToolsMSVC14.16.27023binHostX86x64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:UsersbjwilAnaconda3include -IC:UsersbjwilAnaconda3include "-IC:Program Files (x86)Microsoft Visual Studio2017BuildToolsVCToolsMSVC14.16.27023include" /TcC:Usersbjwilbioinformaticstaxcode.c /Fobuildtemp.win-amd64-3.6ReleaseUsersbjwilbioinformaticstaxcode.obj
taxcode.c
c:usersbjwilanaconda3includepyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe' failed with exit status 2

$PATH:

/c/Perl64/bin
/c/Perl64/site/bin
/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/bin
/usr/X11/bin
/c/Users/bjwil/Anaconda3
/c/Users/bjwil/Anaconda3/Scripts
/c/ProgramData/Microsoft/Windows/Start Menu/Programs/Notepad++
/c/ProgramData/chocolatey/bin
/c/Program Files/git/cmd
/c/Program Files/MySQL/MySQL Server 5.7/bin
/c/Users/bjwil/Anaconda3/Lib/site-packages/pymol
/c/Program Files/R/R-3.5.1/bin
/c/ProgramData/Microsoft/Windows/Start Menu/Microsoft R Client
/c/Users/bjwil/OneDrive/Documents/R
/c/Program Files/sratoolkit.2.9.2-win64/bin
/c/ProgramData/Microsoft/Windows/Start Menu/Programs/Visual Studio 2017/Visual Studio Tools/VC
/c/ProgramData/Microsoft/Windows/Start Menu/Programs/GNU Octave 4.4.1/
/c/Program Files/Git/mingw64/bin/
/c/Rtools/bin
/c/Users/bjwil/local/bin/
/c/Program Files (x86)/Windows Kits/10/Include/10.0.16299.0/ucrt

Содержание

  1. pip install fails on Windows 10 #120
  2. Comments
  3. Failed to install on Windows 10 (x64) using pip install #4
  4. Comments
  5. Cannot open include file io.h #462
  6. Comments
  7. Неустранимая ошибка C1083
  8. Указано неверное имя файла
  9. Файл не включен в путь поиска включения
  10. Проблемы со сторонними библиотеками и vcpkg
  11. Файл находится в проекте, но не включает путь поиска
  12. Среда INCLUDE или LIB командной строки не задана
  13. Файл может быть заблокирован или использоваться
  14. Включена неправильная версия имени файла
  15. Предкомпилированные заголовки еще не скомпилированы
  16. Дополнительные причины
  17. Пример

pip install fails on Windows 10 #120

Well after using it in Windows 7 I have to up-grade to Windows 10 and cannot get past the pip in stall

The text was updated successfully, but these errors were encountered:

I do not have access to Windows 10 at the moment, but the error seems to be between Python’s header files and the Windows header files, so before trying to compile a complex program like PyEphem you might try compiling a simple «Hello world» program that imports pyconfig.h and see if you can get that working before trying PyEphem again?

A Google search for «pyconfig.h» «io.h» turns up several Stack Overflow questions that you might also dive into. If you are able to track down the problem to PyEphem itself, do provide more details; or if you find it’s a problem with all C compilation of Python on your system, then let us know here if you find a fix in case anyone else runs into the problem. Thanks!

Well other windows 10 same issue.
Successfully run pip install ephem and pip install pyephem
pip list shows both.
import ephem give erroe no such module

print(sys.path)
[», ‘C:UserssebasAppDataLocalProgramsPythonPython35-32Libidlelib’, ‘C:UserssebasAppDataLocalProgramsPythonPython35-32python35.zip’, ‘C:UserssebasAppDataLocalProgramsPythonPython35-32DLLs’, ‘C:UserssebasAppDataLocalProgramsPythonPython35-32lib’, ‘C:UserssebasAppDataLocalProgramsPythonPython35-32’, ‘C:UserssebasAppDataLocalProgramsPythonPython35-32libsite-packages’]
.
Why are there «» I wonder.

The backslashes are there because that’s how Windows delimits directories.

So you successfully ran pip install, but Python cannot find the resulting module? I wonder whether your pip command and python command are both the exact same Python install or not? Can you ask the operating system what command in what folder is getting run when you type pip and then when you type python ? Sometimes I have had the problem that pip is writing packages into one version of Python on my hard drive, while python is invoking the interpreter of an entirely different copy of Python somewhere else on my hard drive.

Thanks for the update, I am glad you got it working. And thanks for the description of your project, it is always fun to hear what users are using PyEphem for!

Источник

Failed to install on Windows 10 (x64) using pip install #4

pip install lws
Collecting lws
Downloading lws-1.2.tar.gz (133kB)
100% |████████████████████████████████| 143kB 778kB/s
Building wheels for collected packages: lws
Running setup.py bdist_wheel for lws . error
Complete output from command C:Anaconda3envsptpython.exe -u -c «import setuptools, tokenize;file=’C:Usersdata2AppDataLocalTemppip-build-hpsw5y8hlwssetup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, file, ‘exec’))» bdist_wheel -d C:Usersdata2AppDataLocalTemptmpmy25klczpip-wheel- —python-tag cp36:
running bdist_wheel
running build
running build_ext
building ‘lws’ extension
creating build
creating buildtemp.win-amd64-3.6
creating buildtemp.win-amd64-3.6Release
creating buildtemp.win-amd64-3.6Releaselwslib
C:Program Files (x86)Microsoft Visual Studio2017BuildToolsVCToolsMSVC14.12.25827binHostX86x64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ilwslib/ -IC:Anaconda3envsptlibsite-packagesnumpycoreinclude -IC:Anaconda3envsptinclude -IC:Anaconda3envsptinclude «-IC:Program Files (x86)Microsoft Visual Studio2017BuildToolsVCToolsMSVC14.12.25827include» /EHsc /Tplws.bycython.cpp /Fobuildtemp.win-amd64-3.6Releaselws.bycython.obj -O3
cl : Command line warning D9002 : ignoring unknown option ‘-O3’
lws.bycython.cpp
c:anaconda3envsptincludepyconfig.h(59): fatal error C1083: Cannot open include file: ‘io.h’: No such file or directory
error: command ‘C:Program Files (x86)Microsoft Visual Studio2017BuildToolsVCToolsMSVC14.12.25827binHostX86x64cl.exe’ failed with exit status 2

Failed building wheel for lws
Running setup.py clean for lws
Failed to build lws
Installing collected packages: lws
Running setup.py install for lws . error
Complete output from command C:Anaconda3envsptpython.exe -u -c «import setuptools, tokenize;file=’C:Usersdata2AppDataLocalTemppip-build-hpsw5y8hlwssetup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, file, ‘exec’))» install —record C:Usersdata2AppDataLocalTemppip-sb1ltnj5-recordinstall-record.txt —single-version-externally-managed —compile:
running install
running build
running build_ext
building ‘lws’ extension
creating build
creating buildtemp.win-amd64-3.6
creating buildtemp.win-amd64-3.6Release
creating buildtemp.win-amd64-3.6Releaselwslib
C:Program Files (x86)Microsoft Visual Studio2017BuildToolsVCToolsMSVC14.12.25827binHostX86x64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ilwslib/ -IC:Anaconda3envsptlibsite-packagesnumpycoreinclude -IC:Anaconda3envsptinclude -IC:Anaconda3envsptinclude «-IC:Program Files (x86)Microsoft Visual Studio2017BuildToolsVCToolsMSVC14.12.25827include» /EHsc /Tplws.bycython.cpp /Fobuildtemp.win-amd64-3.6Releaselws.bycython.obj -O3
cl : Command line warning D9002 : ignoring unknown option ‘-O3’
lws.bycython.cpp
c:anaconda3envsptincludepyconfig.h(59): fatal error C1083: Cannot open include file: ‘io.h’: No such file or directory
error: command ‘C:Program Files (x86)Microsoft Visual Studio2017BuildToolsVCToolsMSVC14.12.25827binHostX86x64cl.exe’ failed with exit status 2

Command «C:Anaconda3envsptpython.exe -u -c «import setuptools, tokenize;file=’C:Usersdata2AppDataLocalTemppip-build-hpsw5y8hlwssetup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, file, ‘exec’))» install —record C:Usersdata2AppDataLocalTemppip-sb1ltnj5-recordinstall-record.txt —single-version-externally-managed —compile» failed with error code 1 in C:Usersdata2AppDataLocalTemppip-build-hpsw5y8hlws

The text was updated successfully, but these errors were encountered:

Источник

Cannot open include file io.h #462

I’ve been getting other errors before, and they told me to install Visual Studio 14 C++ tools, and I did.
Then I also installed Win10SDK and Python for Visual Studio as well, but nothing worked.
Mentioning this because I see mentions of VS in the error message

I am trying the Direct install method from Git, on Windows 10. I am not certain if I have installed the cairo library as well.

Thanks in advance.

Collecting pycairo==1.17.1 (from -r requirements.txt (line 9))
Using cached https://files.pythonhosted.org/packages/68/76/340ff847897296b2c8174dfa5a5ec3406e3ed783a2abac918cf326abad86/pycairo-1.17.1.tar.gz
Collecting pydub==0.23.0 (from -r requirements.txt (line 10))
Using cached https://files.pythonhosted.org/packages/2f/73/bb9c093882d647437a9e6e87c7e6592d2df852f83ffac6f348b878979be0/pydub-0.23.0-py2.py3-none-any.whl
Installing collected packages: pycairo, pydub
Running setup.py install for pycairo: started
Running setup.py install for pycairo: finished with status ‘error’
Complete output from command C:UsersEntropyAppDataLocalProgramsPythonPython37python3.exe -u -c «import setuptools, tokenize;file=’C:UsersEntropyAppDataLocalTemppip-install-vsjln7hxpycairosetup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, file, ‘exec’))» install —record C:UsersEntropyAppDataLocalTemppip-record-l6ol5dezinstall-record.txt —single-version-externally-managed —compile:
running install
running build
running build_py
creating build
creating buildlib.win-amd64-3.7
creating buildlib.win-amd64-3.7cairo
copying cairo_init_.py -> buildlib.win-amd64-3.7cairo
copying cairo_init_.pyi -> buildlib.win-amd64-3.7cairo
copying cairopy.typed -> buildlib.win-amd64-3.7cairo
running build_ext
building ‘cairo._cairo’ extension
creating buildtemp.win-amd64-3.7
creating buildtemp.win-amd64-3.7Release
creating buildtemp.win-amd64-3.7Releasecairo
C:Program Files (x86)Microsoft Visual Studio2017BuildToolsVCToolsMSVC14.16.27023binHostX86x64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYCAIRO_VERSION_MAJOR=1 -DPYCAIRO_VERSION_MINOR=17 -DPYCAIRO_VERSION_MICRO=1 -IC:UsersEntropyAppDataLocalProgramsPythonPython37include -IC:UsersEntropyAppDataLocalProgramsPythonPython37include «-IC:Program Files (x86)Microsoft Visual Studio2017BuildToolsVCToolsMSVC14.16.27023include» /Tccairo/device.c /Fobuildtemp.win-amd64-3.7Releasecairo/device.obj
device.c
c:usersentropyappdatalocalprogramspythonpython37includepyconfig.h(59): fatal error C1083: Cannot open include file: ‘io.h’: No such file or directory
error: command ‘C:Program Files (x86)Microsoft Visual Studio2017BuildToolsVCToolsMSVC14.16.27023binHostX86x64cl.exe’ failed with exit status 2
—————————————-
Command «C:UsersEntropyAppDataLocalProgramsPythonPython37python3.exe -u -c «import setuptools, tokenize;file=’C:UsersEntropyAppDataLocalTemppip-install-vsjln7hxpycairosetup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, file, ‘exec’))» install —record C:UsersEntropyAppDataLocalTemppip-record-l6ol5dezinstall-record.txt —single-version-externally-managed —compile» failed with error code 1 in C:UsersEntropyAppDataLocalTemppip-install-vsjln7hxpycairo

The text was updated successfully, but these errors were encountered:

I’m getting a similar error but this time it mentions how the cairo.h file is missing. It seems that I haven’t installed it correctly, what should I do?

Источник

Неустранимая ошибка C1083

Компилятор создает ошибку C1083, если не удается найти необходимый файл. Эта ошибка имеет несколько возможных причин. Неправильный путь поиска или отсутствующие или неправильно именуемые файлы заголовков являются наиболее распространенными причинами, но другие типы файлов и проблемы также могут вызвать C1083. Ниже приведены некоторые распространенные причины, по которым компилятор создает эту ошибку.

Указано неверное имя файла

При вводе имени файла допущена ошибка. Например, примененная к объекту директива

может не найти файл, который вы хотели. Большинство файлов заголовков стандартной библиотеки C++ не имеют расширения H-файла. Заголовок не найден этой #include директивой. Чтобы устранить эту проблему, убедитесь, что введено правильное имя файла, как в следующем примере:

Некоторые заголовки библиотеки времени выполнения C расположены в подкаталоге стандартного каталога включения. Например, чтобы включить sys/types.h , необходимо включить sys имя подкаталога в директиву #include :

Файл не включен в путь поиска включения

Компилятору не удается найти файл, используя правила поиска, которые указаны в директиве #include или #import . Например, если имя файла заголовка заключено в кавычки,

это указывает компилятору сначала искать файл в том же каталоге, который содержит исходный файл, а затем искать в других расположениях, указанных средой сборки. Если кавычки содержат абсолютный путь, компилятор выполняет поиск файла только в этом расположении. Если кавычки содержат относительный путь, компилятор выполняет поиск файла в каталоге относительно исходного каталога.

Если имя заключено в угловые скобки,

компилятор следует пути поиска, определяемого средой сборки, /I параметром компилятора, /X параметром компилятора и переменной среды INCLUDE . Дополнительные сведения, включая конкретные сведения о порядке поиска, используемом для поиска файла, см. в директиве #include (C/C++) и директиве #import.

Если файлы включения находятся в другом каталоге относительно исходного каталога и используете относительный путь в директивах include, следует использовать двойные кавычки вместо угловых скобок. Например, если файл myheader.h заголовка находится в подкаталоге источников проекта с именами заголовков, в этом примере не удается найти файл и вызвать C1083:

но этот пример работает:

Относительные пути также можно использовать с каталогами в пути поиска включения. Если вы добавляете каталог в переменную среды INCLUDE или в путь include directories в Visual Studio, не добавляйте часть пути к директивам include. Например, если заголовок находится по адресу pathexampleheadersmyheader.h и добавляется pathexampleheaders в путь включения каталогов в Visual Studio, но директива #include ссылается на файл как

затем файл не найден. Используйте правильный путь относительно каталога, указанного в пути поиска include. В этом примере можно изменить путь pathexample поиска включения или удалить headers сегмент пути из директивы #include .

Проблемы со сторонними библиотеками и vcpkg

Если эта ошибка возникает при попытке настроить стороннюю библиотеку в рамках сборки, рассмотрите возможность использования vcpkg, диспетчера пакетов C++ для установки и сборки библиотеки. vcpkg поддерживает большой и растущий список сторонних библиотек и задает все свойства и зависимости конфигурации, необходимые для успешных сборок в рамках проекта.

Файл находится в проекте, но не включает путь поиска

Даже если файлы заголовков перечислены в Обозреватель решений как часть проекта, файлы обнаруживаются компилятором только в том случае, если они ссылаются #include на исходный файл или #import директиву и находятся в пути поиска включаемых файлов. Для различных типов построений могут использоваться разные пути поиска. Параметр /X компилятора можно использовать для исключения каталогов из пути поиска включения. Это позволяет использовать для разных построений разные файлы include, которые имеют одно имя, но расположены в разных каталогах. Таким образом создается альтернатива условной компиляции с помощью команд препроцессора. Дополнительные сведения о параметре /X компилятора см. в разделе /X (Пропуск стандартных путей включения).

Чтобы устранить эту проблему, исправьте путь, используемый компилятором для поиска включаемого или импортируемого файла. Новый проект использует пути поиска по умолчанию. Возможно, потребуется изменить путь поиска включения, чтобы добавить каталог для проекта. При компиляции в командной строке добавьте путь к переменной среды INCLUDE или /I параметр компилятора, чтобы указать путь к файлу.

Чтобы задать путь к каталогу include в Visual Studio, откройте диалоговое окно страниц свойств проекта. Выберите каталоги VC++ в разделе «Свойства конфигурации » в левой области, а затем измените свойство Include Directoryies . Дополнительные сведения о каталогах для отдельных пользователей и проектов, искомых компилятором в Visual Studio, см. на странице свойств каталогов VC++. Дополнительные сведения о параметре /I компилятора см. в разделе /I (Дополнительные каталоги включения).

Среда INCLUDE или LIB командной строки не задана

Если компилятор вызывается из командной строки, для указания путей поиска часто используются переменные среды. Если путь поиска, описанный переменной среды INCLUDE или LIB , неправильно задан, может возникнуть ошибка C1083. Настоятельно рекомендуется использовать ярлык командной строки разработчика, чтобы задать базовую среду для сборок командной строки. Дополнительные сведения см. в разделе «Сборка C/C++ в командной строке». Дополнительные сведения об использовании переменных среды см. в разделе «Практическое руководство. Использование переменных среды в сборке».

Файл может быть заблокирован или использоваться

Если вы используете другую программу для редактирования или доступа к файлу, возможно, файл заблокирован. Попробуйте закрыть файл в другой программе. Иногда другая программа может быть самой Visual Studio, если вы используете параметры параллельной компиляции. Если параметр параллельной сборки отключает ошибку, это проблема. Эта проблема также может быть связана с другими параллельными системами сборки. Будьте внимательны, чтобы задать зависимости файлов и проектов, чтобы порядок сборки был правильным. В некоторых случаях рассмотрите возможность создания промежуточного проекта для принудительного порядка сборки зависимостей для общего файла, который может быть создан несколькими проектами. Иногда антивирусные программы временно блокируют недавно измененные файлы для сканирования. По возможности рекомендуется исключить каталоги сборки проекта из антивирусного сканера.

Включена неправильная версия имени файла

Ошибка C1083 также может указывать на включение неверной версии файла. Например, построение может включать неверную версию файла, содержащего директиву #include для файла заголовка, который не предназначен для данного построения. Например, некоторые файлы могут применяться только к сборкам x86 или к отладочным сборкам. Если файл заголовка не найден, компилятор выдает ошибку C1083. Для исправления этой проблемы необходимо использовать правильный файл, а не добавлять в построение файл заголовка или каталог.

Предкомпилированные заголовки еще не скомпилированы

Если проект настроен на использование предварительно скомпилированных заголовков, необходимо создать соответствующие .pch файлы, чтобы можно было скомпилировать файлы, использующие содержимое заголовка. Например, pch.cpp файл ( stdafx.cpp в Visual Studio 2017 и более ранних версиях) автоматически создается в каталоге проекта для новых проектов. Сначала необходимо скомпилировать этот файл, чтобы создать предкомпилированные файлы заголовков. В стандартной структуре процесса сборки это делается автоматически. Дополнительные сведения см. в разделе «Создание предварительно скомпилированных файлов заголовков».

Дополнительные причины

Вы установили пакет SDK или стороннюю библиотеку, но не открывали новое окно командной строки разработчика после установки пакета SDK или библиотеки. Если пакет SDK или библиотека добавляет файлы в путь INCLUDE , может потребоваться открыть новое окно командной строки разработчика, чтобы получить эти изменения переменной среды.

Файл использует управляемый код, но параметр /clr компилятора не указан. Дополнительные сведения см. в разделе /clr (компиляция среды CLR).

Файл компилируется с помощью другого /analyze параметра параметра компилятора, отличного от используемого для предварительной компиляции заголовков. При предварительной компиляции заголовков проекта все должны использовать одни и те же /analyze параметры. Дополнительные сведения см. в разделе /analyze (Анализ кода).

Файл или каталог был создан подсистема Windows для Linux, включена конфиденциальность регистра для каждого каталога, и указанный случай пути или файла не соответствует регистру пути или файла на диске.

Файл, каталог или диск доступен только для чтения.

Visual Studio или программы командной строки не имеют достаточных разрешений для чтения файла или каталога. Это может произойти, например, если файлы проекта имеют другое право собственности, чем процесс, выполняемый в Visual Studio или программы командной строки. Иногда эту проблему можно устранить, запустив Visual Studio или командную строку разработчика от имени администратора.

Недостаточно дескрипторов файлов. Закройте часть приложений и повторите компиляцию. Эта ситуация маловероятна в обычных условиях. Однако она может возникать при построении крупных проектов на компьютере с ограниченной физической памятью.

Пример

В следующем примере возникает ошибка C1083, если файл «test.h» заголовка не существует в исходном каталоге или в пути поиска включения.

Сведения о сборке проектов C/C++ в интегрированной среде разработки или командной строке, а также о настройке переменных среды см. в разделе «Проекты» и «Системы сборки».

Источник

@gboysen

Well after using it in Windows 7 I have to up-grade to Windows 10 and cannot get past the pip in stall

c:users................appdatalocalprogramspythonpython36-32includepyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\Shared\14.0\VC\bin\cl.exe' failed with exit status 2

@brandon-rhodes

I do not have access to Windows 10 at the moment, but the error seems to be between Python’s header files and the Windows header files, so before trying to compile a complex program like PyEphem you might try compiling a simple «Hello world» program that imports pyconfig.h and see if you can get that working before trying PyEphem again?

A Google search for "pyconfig.h" "io.h" turns up several Stack Overflow questions that you might also dive into. If you are able to track down the problem to PyEphem itself, do provide more details; or if you find it’s a problem with all C compilation of Python on your system, then let us know here if you find a fix in case anyone else runs into the problem. Thanks!

@gboysen

Thank you for your replay i got it to work but so. or remember how. All the stuck overflow did not work. I think i downloaded the girl and used «sudo pip install file »
I have a look later tonight.

Sent from my iPhone

On May 24, 2017, at 12:29 AM, Brandon Rhodes ***@***.***> wrote:

I do not have access to Windows 10 at the moment, but the error seems to be between Python’s header files and the Windows header files, so before trying to compile a complex program like PyEphem you might try compiling a simple «Hello world» program that imports pyconfig.h and see if you can get that working before trying PyEphem again?

A Google search for «pyconfig.h» «io.h» turns up several Stack Overflow questions that you might also dive into. If you are able to track down the problem to PyEphem itself, do provide more details; or if you find it’s a problem with all C compilation of Python on your system, then let us know here if you find a fix in case anyone else runs into the problem. Thanks!


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@gboysen

Well other windows 10 same issue.
Successfully run pip install ephem and pip install pyephem
pip list shows both.
import ephem give erroe no such module

print(sys.path)
[», ‘C:UserssebasAppDataLocalProgramsPythonPython35-32Libidlelib’, ‘C:UserssebasAppDataLocalProgramsPythonPython35-32python35.zip’, ‘C:UserssebasAppDataLocalProgramsPythonPython35-32DLLs’, ‘C:UserssebasAppDataLocalProgramsPythonPython35-32lib’, ‘C:UserssebasAppDataLocalProgramsPythonPython35-32’, ‘C:UserssebasAppDataLocalProgramsPythonPython35-32libsite-packages’]
.
Why are there «» I wonder.

@brandon-rhodes

The backslashes are there because that’s how Windows delimits directories.

So you successfully ran pip install, but Python cannot find the resulting module? I wonder whether your pip command and python command are both the exact same Python install or not? Can you ask the operating system what command in what folder is getting run when you type pip and then when you type python? Sometimes I have had the problem that pip is writing packages into one version of Python on my hard drive, while python is invoking the interpreter of an entirely different copy of Python somewhere else on my hard drive.

@gboysen

Thank you i actually figured it all out.

It is all about file location. Pip in windows 10 only runs when called in the right folder.
I have not tried to add the ……pythonScripts, where pip is, to the environment variable, since now i know how to use it now.
On my raspberry pi pip run from all folders.
I will update the blog/forum accordingly.
Also if python 2 and 3 are installed using pip3 has be used.
.
Thank you! We have a lot fun with ephem. Not sure the difference between ephem and pyephem.
The goal is to built a tracking system for our telescope. We got the ephem worked out and are currently working with gyro/acel sensor to learn how to determine current orientation!
.
Thank you.

Sent from my iPhone

On Jul 2, 2017, at 10:23 AM, Brandon Rhodes ***@***.***> wrote:

The backslashes are there because that’s how Windows delimits directories.

So you successfully ran pip install, but Python cannot find the resulting module? I wonder whether your pip command and python command are both the exact same Python install or not? Can you ask the operating system what command in what folder is getting run when you type pip and then when you type python? Sometimes I have had the problem that pip is writing packages into one version of Python on my hard drive, while python is invoking the interpreter of an entirely different copy of Python somewhere else on my hard drive.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@brandon-rhodes

Thanks for the update, I am glad you got it working. And thanks for the description of your project, it is always fun to hear what users are using PyEphem for!

@gboysen

Well I got an Windows 10 image form work and are back to square 1 with
installing pyephem.
I’ll try to keep better notes this time.
-Installed python 3.6.2 with IDLE
-pip is included and is at location in …ProgramsPythonPython36-
32Scripts
-!pip install pyephem returns —single-version-externally-managed
—compile» failed with error code 1
!! running command prompt normal or administrator = same
erorr.
-!Copied pip into the folder contain python -> same error
-download 32 and 64 bit wheels did work either
-error pyephem-3.7.6.0-cp34-none-win32.whl is not a supported wheel on this
platform.
.
Then is run command prompt as administrator again and it worked
Yahhh…

C:UsersBoysenGunnarAppDataLocalProgramsPythonPython36-32Scripts>pip
install pyephem
Collecting pyephem
Using cached pyephem-3.7.6.0.tar.gz
Installing collected packages: pyephem
Running setup.py install for pyephem … done
Successfully installed pyephem-3.7.6.0

C:UsersBoysenGunnarAppDataLocalProgramsPythonPython36-32Scripts>

On Sun, Jul 2, 2017 at 10:23 AM, Brandon Rhodes ***@***.***> wrote:
The backslashes are there because that’s how Windows delimits
directories.

So you successfully ran pip install, but Python cannot find the resulting
module? I wonder whether your pip command and python command are both the
exact same Python install or not? Can you ask the operating system what
command in what folder is getting run when you type pip and then when you
type python? Sometimes I have had the problem that pip is writing
packages into one version of Python on my hard drive, while python is
invoking the interpreter of an entirely different copy of Python somewhere
else on my hard drive.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#120 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ASk9-uhLdQnQAZm_WWB54TTMlICHZYh3ks5sJ7XsgaJpZM4NSpgG>
.

@brandon-rhodes

Thanks for the more detailed notes!

@sergeod9

Same problem here, I’ve been fiddling with the environment variables for the last couple of hours, the problem is with io.h file in VS C++, for some reason pip can’t find it, even when added to the path in the system environment variables

@gboysen

I know I figured it out and have since then installed and run it on several Windows 10 PCs. I though i posted a solution if not let me know and i did it out.

Sent from my iPhone

On Nov 16, 2017, at 12:19 PM, Georges Dahdouh ***@***.***> wrote:

Same problem here, I’ve been fiddling with the environment variables for the last couple of hours, the problem is with io.h file in VS C++, for some reason pip can’t find it, even when added to the path in the system environment variables


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@sergeod9

Could you please provide a link to the solution, I tried everything I
could find on the forums, nothing worked so far.

On 17 Nov 2017 7:25 am, «gboysen» <notifications@github.com> wrote:

I know I figured it out and have since then installed and run it on several
Windows 10 PCs. I though i posted a solution if not let me know and i did
it out.

Sent from my iPhone

On Nov 16, 2017, at 12:19 PM, Georges Dahdouh ***@***.***>

wrote:

Same problem here, I’ve been fiddling with the environment variables for

the last couple of hours, the problem is with io.h file in VS C++, for some
reason pip can’t find it, even when added to the path in the system
environment variables


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@gboysen

damn I had a screen free weekend ping me later tonight I am in CST.

On Fri, Nov 17, 2017 at 1:35 AM, Georges Dahdouh <notifications@github.com>
wrote:

Could you please provide a link to the solution, I tried everything I
could find on the forums, nothing worked so far.

On 17 Nov 2017 7:25 am, «gboysen» ***@***.***> wrote:

I know I figured it out and have since then installed and run it on several
Windows 10 PCs. I though i posted a solution if not let me know and i did
it out.

Sent from my iPhone

> On Nov 16, 2017, at 12:19 PM, Georges Dahdouh ***@***.***>
wrote:
>
> Same problem here, I’ve been fiddling with the environment variables for
the last couple of hours, the problem is with io.h file in VS C++, for some
reason pip can’t find it, even when added to the path in the system
environment variables
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub, or mute the thread.
>


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#120#
issuecomment-345142060>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
ASw8j6sfSpIEfx6U6w27miN5BRWMOxp-ks5s3QqugaJpZM4NSpgG>
.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#120 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ASk9-qAhS9-RIR33k1I_NRc2inBFuys_ks5s3TcsgaJpZM4NSpgG>
.

I’ve stumbled across this annoying error when trying to setup Cython working environment. Here are a couple of good guides: one, two. Everything went fine until I tried to compile the Cython code with

python setup.py build_ext --inplace

Then I got this nasty error:

C:Usersirmscanaconda3envsbacktestingincludepyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2

This is definitely something to do with the Microsoft Visual Studio compatibility. There are some useful advices here and there on the internet like here on StackOverflow where people mostly recommend making sure you install latest Build Tools and Windows 10 SDK via the Visual Studio installer. And a bunch of other things that I tried to no avail.

Of course I could’ve spend a couple more days trying to find the “orthodox” solution but I decided to give a shot to the alternative approaches which can be found over here. It gave Anaconda a try, a second chance actually. Here’s the complete guide.

1: Issue solved by installing Anaconda for Windows 10

2: install cython by running conda install -c anaconda cython in Anaconda prompt

3: go in C:UsersUtilisateurAnaconda3Libdistutils or wherever your distutils library is the create a distutils.cfg file (by using the notepad) and put

[build]           
compiler=mingw32

or even

[build]           
compiler=mingw64

4: get the latest version of Mingw-w64 (not just Mingw which support just 32 bits) at https://sourceforge.net/projects/mingw-w64/files/ and install it

5: add C:Program Files (x86)mingw-w64i686-8.1.0-posix-dwarf-rt_v6-rev0mingw32bin to your Path here is a link on how to do that on windows 10: https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/

6: install libpython and m2w64-toolchain in your anaconda envirement by running conda install -c anaconda libpython and conda install -c msys2 m2w64-toolchain It come from these webpage https://python-at-risoe.pages.windenergy.dtu.dk/compiling-on-windows/common_errors.html and should correct the corresponding errors

Cannot open include file 'io.h' No such file or directory error command failed with exit code 2 - Error FixedSo now if you run “python setup.py build_ext –inplace” you can see there’s no more error. The nasty “Cannot open include file ‘io.h’ No such file or directory error command failed with exit code 2” – has been fixed!

Hope this helps!

ihouses

Posts: 19
Joined: Sun Jul 09, 2017 1:41 pm

VS code tool chain installer problem with pip when creating virtual python environment

Hi,

I have tried the new plugin for Visual Studio code, it is really promising but unfortunately I get an error related with one of the packages:

_openssl.c
C:Python37includepyconfig.h(59): fatal error C1083: Cannot open include file: ‘io.h’: No such file or directory
error: command ‘C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\HostX86\x64\cl.exe’ failed with exit status 2

=============================DEBUG ASSISTANCE=============================
If you are seeing a compilation error please try the following steps to
successfully install cryptography:
1) Upgrade to the latest pip and try again. This will fix errors for most
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
2) Read https://cryptography.io/en/latest/installation.html for specific
instructions for your platform.
3) Check our frequently asked questions for more information:
https://cryptography.io/en/latest/faq.html
=============================DEBUG ASSISTANCE=============================

—————————————-
Failed building wheel for cryptography
Command «c:esptools.espressifpython_envidf4.2_py3.7_envScriptspython.exe -u -c «import setuptools, tokenize;__file__=’C:\Users\Jose\AppData\Local\Temp\pip-install-pn7h479i\cryptography\setup.py’;f=getattr(tokenize, ‘open’, open)(__file__);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, __file__, ‘exec’))» install —record C:UsersJoseAppDataLocalTemppip-record-2_ugakdhinstall-record.txt —single-version-externally-managed —compile —install-headers c:esptools.espressifpython_envidf4.2_py3.7_envincludesitepython3.7cryptography» failed with error code 1 in C:UsersJoseAppDataLocalTemppip-install-pn7h479icryptography
You are using pip version 10.0.1, however version 20.3.3 is available.
You should consider upgrading via the ‘python -m pip install —upgrade pip’ command.
Command failed: «c:esptools.espressifpython_envidf4.2_py3.7_envScriptspython.exe» -m pip install -r «C:UsersJoseesp-idfrequirements.txt»

I have debugging the problem and I see that every time that I execute the Download button of the IDF tools the installer DELETE the existing python environment and overwrite the content (always with the old version of pip) so even if I upgrate pip properly doesn’t have any effect because will be overwritted. BTW my normal python 3.7 has the last version of Pip.

So I really dont know how what so do now…

Any ideas?

Thanks!


ESP_georgik

Posts: 21
Joined: Fri Nov 06, 2020 8:23 am
Location: Brno
Contact:

Re: VS code tool chain installer problem with pip when creating virtual python environment

Postby ESP_georgik » Mon Dec 21, 2020 8:36 am

@ihouses Thank you for reporting the problem.

Please, try to upgrade your installation to the latest version of Python 3.7.

The problem that you’ve described indicates that Python 3.7 installation is old and contains pip 10.0.1.
The command virtualenv takes into account the version from the original installation when creating a new virtual environment.
Upgrading pip in the main installation of Python does not help, because virtualenv seeder does not take the modification into account.

The problem can be simulated in the following way:
— pip part

Code: Select all

pip --version
pip 20.3.3 from C:....

— virtualenv part

Code: Select all

virtualenv newenv
created virtual environment CPython...
  creator CPython3Windows(dest=C:..., clear=False, no_vcs_ignore=False, global=False)
  seeder PipInvoke(download=False, pip=10.0.1, setuptools=bundle, wheel=bundle)
    added seed packages: pip==10.0.1, ...
  activators ...

As you can see versions do not match. More information about virtualenv seeder is here: https://virtualenv.pypa.io/en/latest/cl … ion-seeder

That’s one part of the problem.

The second part of the problem:
Old pip 10.0.1 seems to fail with a resolution of Cryptography Wheel, so it attempts to compile it from source code.

The second problem should be fixed by using a newer version of Python 3.7 with newer pip which will be able to resolve the wheel with cryptography.

— Juraj Michálek
Senior Embedded Software Engineer at Espressif Systems


ihouses

Posts: 19
Joined: Sun Jul 09, 2017 1:41 pm

Re: VS code tool chain installer problem with pip when creating virtual python environment

Postby ihouses » Mon Dec 21, 2020 11:47 pm

Hello,

I tried to use the last python version 3.9 (I think) that has a much never version of pip but still fails.

As you see in my error log:

C:Python37includepyconfig.h(59): fatal error C1083: Cannot open include file: ‘io.h’: No such file or directory
error: command ‘C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\HostX86\x64\cl.exe’ failed with exit status 2

I found out that the real problem was an non updated vs_build_tools. After updating that properly the build was complete.

This is a weird thing since I could compile thing for IDF ESP32 without problems and with a non updated version of vs_build_tools so there is a weird dependency here.

Thanks for the support!


Who is online

Users browsing this forum: No registered users and 56 guests

I can’t install webrtcvad on Windows 10. I try pip install webrtcvad and it gives this error message.

Collecting webrtcvad

Using cached webrtcvad-2.0.10.tar.gz (66 kB)

Using legacy ‘setup.py install’ for webrtcvad, since package ‘wheel’ is not installed.

Installing collected packages: webrtcvad

Running setup.py install for webrtcvad … error

ERROR: Command errored out with exit status 1:

command: ‘c:usershorus50appdatalocalprogramspythonpython37python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘C:\Users\Horus50\AppData\Local\Temp\pip-install-ebpov27w\webrtcvad\setup.py'»‘»‘; __file__='»‘»‘C:\Users\Horus50\AppData\Local\Temp\pip-install-ebpov27w\webrtcvad\setup.py'»‘»‘;f=getattr(tokenize, ‘»‘»‘open'»‘»‘, open)(__file__);code=f.read().replace(‘»‘»‘rn'»‘»‘, ‘»‘»‘n'»‘»‘);f.close();exec(compile(code, __file__, ‘»‘»‘exec'»‘»‘))’ install —record ‘C:UsersHorus50AppDataLocalTemppip-record-udzesqbsinstall-record.txt’ —single-version-externally-managed —compile —install-headers ‘c:usershorus50appdatalocalprogramspythonpython37Includewebrtcvad’

cwd: C:UsersHorus50AppDataLocalTemppip-install-ebpov27wwebrtcvad

Complete output (19 lines):

running install

running build

running build_py

creating build

creating buildlib.win-amd64-3.7

copying webrtcvad.py -> buildlib.win-amd64-3.7

running build_ext

building ‘_webrtcvad’ extension

creating buildtemp.win-amd64-3.7

creating buildtemp.win-amd64-3.7Release

creating buildtemp.win-amd64-3.7Releasecbits

creating buildtemp.win-amd64-3.7Releasecbitswebrtc

creating buildtemp.win-amd64-3.7Releasecbitswebrtccommon_audio

creating buildtemp.win-amd64-3.7Releasecbitswebrtccommon_audiosignal_processing

creating buildtemp.win-amd64-3.7Releasecbitswebrtccommon_audiovad

C:Program Files (x86)Microsoft Visual Studio2019BuildToolsVCToolsMSVC14.28.29333binHostX86x64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -D_WIN32 -Icbits -Ic:usershorus50appdatalocalprogramspythonpython37include -Ic:usershorus50appdatalocalprogramspythonpython37include «-IC:Program Files (x86)Microsoft Visual Studio2019BuildToolsVCToolsMSVC14.28.29333include» /Tccbitspywebrtcvad.c /Fobuildtemp.win-amd64-3.7Releasecbitspywebrtcvad.obj

pywebrtcvad.c

c:usershorus50appdatalocalprogramspythonpython37includepyconfig.h(59): fatal error C1083: Cannot open include file: ‘io.h’: No such file or directory

error: command ‘C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe’ failed with exit status 2

—————————————-

ERROR: Command errored out with exit status 1: ‘c:usershorus50appdatalocalprogramspythonpython37python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘C:\Users\Horus50\AppData\Local\Temp\pip-install-ebpov27w\webrtcvad\setup.py'»‘»‘; __file__='»‘»‘C:\Users\Horus50\AppData\Local\Temp\pip-install-ebpov27w\webrtcvad\setup.py'»‘»‘;f=getattr(tokenize, ‘»‘»‘open'»‘»‘, open)(__file__);code=f.read().replace(‘»‘»‘rn'»‘»‘, ‘»‘»‘n'»‘»‘);f.close();exec(compile(code, __file__, ‘»‘»‘exec'»‘»‘))’ install —record ‘C:UsersHorus50AppDataLocalTemppip-record-udzesqbsinstall-record.txt’ —single-version-externally-managed —compile —install-headers ‘c:usershorus50appdatalocalprogramspythonpython37Includewebrtcvad’ Check the logs for full command output.

WARNING: You are using pip version 20.2.1; however, version 21.0.1 is available.

You should consider upgrading via the ‘c:usershorus50appdatalocalprogramspythonpython37python.exe -m pip install —upgrade pip’ command.

[/CODE][/SPOILER](venv) C:UsersPavloPycharmProjectspythonProject>pip install web3
Collecting web3
Using cached web3-5.31.3-py3-none-any.whl (501 kB)
Collecting aiohttp<4,>=3.7.4.post0
Using cached aiohttp-3.8.3-cp311-cp311-win_amd64.whl (317 kB)
Collecting eth-abi<3.0.0,>=2.2.0
Using cached eth_abi-2.2.0-py3-none-any.whl (28 kB)
Collecting eth-account<0.6.0,>=0.5.9
Using cached eth_account-0.5.9-py3-none-any.whl (101 kB)
Collecting eth-hash[pycryptodome]<1.0.0,>=0.2.0
Using cached eth_hash-0.5.1-py3-none-any.whl (9.0 kB)
Collecting eth-rlp<0.3
Using cached eth_rlp-0.2.1-py3-none-any.whl (5.0 kB)
Collecting eth-typing<3.0.0,>=2.0.0
Using cached eth_typing-2.3.0-py3-none-any.whl (6.2 kB)
Collecting eth-utils<2.0.0,>=1.9.5
Using cached eth_utils-1.10.0-py3-none-any.whl (24 kB)
Collecting hexbytes<1.0.0,>=0.1.0
Using cached hexbytes-0.3.0-py3-none-any.whl (6.4 kB)
Collecting ipfshttpclient==0.8.0a2
Using cached ipfshttpclient-0.8.0a2-py3-none-any.whl (82 kB)
Collecting jsonschema<5,>=3.2.0
Using cached jsonschema-4.17.3-py3-none-any.whl (90 kB)
Collecting lru-dict<2.0.0,>=1.1.6
Using cached lru-dict-1.1.8.tar.gz (10 kB)
Preparing metadata (setup.py) … done
Collecting protobuf==3.19.5
Using cached protobuf-3.19.5-py2.py3-none-any.whl (162 kB)
Collecting requests<3.0.0,>=2.16.0
Using cached requests-2.28.1-py3-none-any.whl (62 kB)
Collecting websockets<10,>=9.1
Using cached websockets-9.1-cp311-cp311-win_amd64.whl
Requirement already satisfied: pywin32>=223 in c:userspavloappdatalocalprogramspythonpython311libsite-packages (from web3) (305)
Collecting multiaddr>=0.0.7
Using cached multiaddr-0.0.9-py2.py3-none-any.whl (16 kB)
Collecting attrs>=17.3.0
Using cached attrs-22.2.0-py3-none-any.whl (60 kB)
Collecting charset-normalizer<3.0,>=2.0
Using cached charset_normalizer-2.1.1-py3-none-any.whl (39 kB)
Collecting multidict<7.0,>=4.5
Using cached multidict-6.0.4-cp311-cp311-win_amd64.whl (28 kB)
Collecting async-timeout<5.0,>=4.0.0a3
Using cached async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting yarl<2.0,>=1.0
Using cached yarl-1.8.2-cp311-cp311-win_amd64.whl (55 kB)
Collecting frozenlist>=1.1.1
Using cached frozenlist-1.3.3-cp311-cp311-win_amd64.whl (32 kB)
Collecting aiosignal>=1.1.2
Using cached aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Collecting parsimonious<0.9.0,>=0.8.0
Using cached parsimonious-0.8.1-py3-none-any.whl
Collecting bitarray<3,>=1.2.1
Using cached bitarray-2.6.1-cp311-cp311-win_amd64.whl (107 kB)
Collecting eth-keyfile<0.6.0,>=0.5.0
Using cached eth_keyfile-0.5.1-py3-none-any.whl (8.3 kB)
Collecting eth-keys<0.4.0,>=0.3.4
Using cached eth_keys-0.3.4-py3-none-any.whl (21 kB)
Collecting rlp<3,>=1.0.0
Using cached rlp-2.0.1-py2.py3-none-any.whl (20 kB)
Collecting pycryptodome<4,>=3.6.6
Using cached pycryptodome-3.16.0-cp35-abi3-win_amd64.whl (1.7 MB)
Collecting eth-utils<2.0.0,>=1.9.5
Using cached eth_utils-1.9.5-py3-none-any.whl (23 kB)
Collecting cytoolz<1.0.0,>=0.10.1
Using cached cytoolz-0.12.1-cp311-cp311-win_amd64.whl (315 kB)
Collecting pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0
Using cached pyrsistent-0.19.2-py3-none-any.whl (57 kB)
Collecting idna<4,>=2.5
Using cached idna-3.4-py3-none-any.whl (61 kB)
Collecting urllib3<1.27,>=1.21.1
Using cached urllib3-1.26.13-py2.py3-none-any.whl (140 kB)
Collecting certifi>=2017.4.17
Using cached certifi-2022.12.7-py3-none-any.whl (155 kB)
Collecting toolz>=0.8.0
Using cached toolz-0.12.0-py3-none-any.whl (55 kB)
Requirement already satisfied: varint in c:userspavloappdatalocalprogramspythonpython311libsite-packages (from multiaddr>=0.0.7->ipfshttpclient==0.8.0a2->web3) (1.0.2)
Collecting six
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting base58
Using cached base58-2.1.1-py3-none-any.whl (5.6 kB)
Requirement already satisfied: netaddr in c:userspavloappdatalocalprogramspythonpython311libsite-packages (from multiaddr>=0.0.7->ipfshttpclient==0.8.0a2->web3) (0.8.0)
Building wheels for collected packages: lru-dict
Building wheel for lru-dict (setup.py) … error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [11 lines of output]
running bdist_wheel
running build
running build_ext
building ‘lru’ extension
creating build
creating buildtemp.win-amd64-cpython-311
creating buildtemp.win-amd64-cpython-311Release
«C:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCToolsMSVC14.34.31933binHostX86x64cl.exe» /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:UsersPavloAppDataLoc
alProgramsPythonPython311include -IC:UsersPavloAppDataLocalProgramsPythonPython311Include «-IC:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCToolsMSVC14.34.31933include» «-IC:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCAuxiliaryVSinclude» /Tclru.c /Fobuildtemp.win-amd64-cpython-311Releaselru.obj
lru.c
C:UsersPavloAppDataLocalProgramsPythonPython311includepyconfig.h(59): fatal error C1083: ?? ??????? ??????? ???? ?????????: io.h: No such file or directory,
error: command ‘C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\bin\HostX86\x64\cl.exe’ failed with exit code 2
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for lru-dict
Running setup.py clean for lru-dict
Failed to build lru-dict
Installing collected packages: lru-dict, bitarray, websockets, urllib3, toolz, six, pyrsistent, pycryptodome, protobuf, multidict, idna, hexbytes, frozenlist, eth-typing, eth-hash, cha
rset-normalizer, certifi, base58, attrs, async-timeout, yarl, requests, parsimonious, multiaddr, jsonschema, cytoolz, aiosignal, ipfshttpclient, eth-utils, aiohttp, rlp, eth-keys, eth-abi, eth-rlp, eth-keyfile, eth-account, web3
Running setup.py install for lru-dict … error
error: subprocess-exited-with-error

× Running setup.py install for lru-dict did not run successfully.
│ exit code: 1
╰─> [13 lines of output]
running install
C:UsersPavloAppDataLocalProgramsPythonPython311Libsite-packagessetuptoolscommandinstall.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_ext
building ‘lru’ extension
creating build
creating buildtemp.win-amd64-cpython-311
creating buildtemp.win-amd64-cpython-311Release
«C:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCToolsMSVC14.34.31933binHostX86x64cl.exe» /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:UsersPavloAppDataLoc
alProgramsPythonPython311include -IC:UsersPavloAppDataLocalProgramsPythonPython311Include «-IC:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCToolsMSVC14.34.31933include» «-IC:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCAuxiliaryVSinclude» /Tclru.c /Fobuildtemp.win-amd64-cpython-311Releaselru.obj
lru.c
C:UsersPavloAppDataLocalProgramsPythonPython311includepyconfig.h(59): fatal error C1083: ?? ??????? ??????? ???? ?????????: io.h: No such file or directory,
error: command ‘C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\bin\HostX86\x64\cl.exe’ failed with exit code 2
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> lru-dict

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

(venv) C:UsersPavloPycharmProjectspythonProject>pip list
Package Version
———- ——-
docopt 0.6.2
gram 0.2.1
netaddr 0.8.0
pip 22.3.1
pywin32 305
setuptools 65.5.0
varint 1.0.2
wheel 0.38.4

(venv) C:UsersPavloPycharmProjectspythonProject>
вот какая-то ошибка 1672092010328.png

Понравилась статья? Поделить с друзьями:
  • Include pch h ошибка
  • Include nested too deeply error
  • Include iostream ошибка vs code
  • Include expects filename or filename error
  • Include error detail postgre