Python fatal error c1083 io h

Компиляция кода на Cython приводит к фатальной ошибке C1083: Не удается открыть файл включения: ‘io.h’

Как вы настроили Cython для MSVC? У вас есть та же версия MSVC, которая использовалась для сборки вашего Python (и Cython)?

Установлена ли переменная среды INCLUDE для каталога включения MSVC? например, C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE

@eryksun Вы имеете в виду установить переменную второго пути в C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE ? Да, я только что попробовал это. Я получаю ту же ошибку ..

1 ответ

Я перешел на C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include на свой компьютер, а файл io.h не существовал. Похоже, что проблема в файле, по сути, не существует!

В соответствии с этим другим ответом, это библиотека совместимости POSIX: не удалось скомпилировать проект, отсутствует файл io.h

Я не уверен, почему этот файл может отсутствовать. Этот другой ответ предложил переустановить вещи: Установка Visual Studio 2010 (любая версия) устанавливает только 2 файла в каталог заголовков С++

Изменить: все просто работало, когда я перешел на C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Visual Studio 2017\Visual Studio Tools . Были Developer Command Prompt for VS XXX ярлыки. Я открыл один из них, и все команды компиляции были успешными.

Ещё вопросы

  • 1 Поток документов с несколькими столбцами-WPF
  • 0 Как я могу передать свой заводской результат другому контроллеру?
  • 1 Android: небуферизованный ввод-вывод
  • 0 Проверка DOB проверки JQuery работает в Chrome, но не работает в Safari
  • 0 Попытка сделать добавление текста буква за буквой
  • 0 Используйте Intel OpenCL.dll вместе с установкой NVIDA CUDA
  • 0 Выравнивание текста по вертикали внутри ссылки внутри
  • , который должен расширяться по горизонтали
  • 0 Можно ли при создании таблицы объявлять несколько столбцов одного типа без повторного упоминания типа?
  • 0 Ошибка «Не найден совместимый сервер» при установке mysql в Windows 7
  • 1 Реализация гибридного шифрования?
  • 1 Не удалось установить MultiHandleSliderExtender для свойства MultiHandleSliderTargets
  • 0 Какое последнее слово о перенаправлениях, инициируемых JavaScript?
  • 1 Как автоматически обновить экран графического интерфейса в Java, после того, как обновление происходит в сохраненном файле?
  • 1 Как выполнить множественную агрегацию на объекте в Elasticsearch с использованием Python?
  • 0 Я пытаюсь заполнить поле со списком в front-end значением поля из базы данных
  • 1 аккорд d3: текст по центру
  • 0 Node.js Чекбокс Итерация
  • 0 Исчезновение текста под каскадными изображениями
  • 1 Создать const для проекта VisualStudio SQL
  • 1 Передача текста и значения в ComboBox
  • 1 Найти в Хроме работает зажигание или коленвал
  • 0 Как работает символ $ в jquery? [Дубликат]
  • 0 Как я могу скачать данные по любой ссылке?
  • 0 Ничего не загружается, когда хеш пуст с hashchange
  • 1 Используйте аппаратные ключи в SSLContext
  • 1 Checked list box Проверенные элементы Проверка
  • 1 Как получить пересечение массивов во вложенном массиве
  • 1 Размер JPEG в виде байтового массива для Web API
  • 0 Как правильно выровнять то, что изменяет размеры в определенном месте
  • 0 использование итераторов вставки без std :: copy
  • 1 Ошибка доступа к API поиска с помощью C # в SharePoint 2013: ваш поиск не может быть завершен, потому что служба поиска недоступна
  • 0 Самые длинные запросы MySQL для тестирования в худшем случае
  • 1 как получить значение из виджета входа в tkinter в python3.6
  • 0 Расширение PHP с C. При создании первой среды я получил ошибку синтаксиса awk, используя ext_skel
  • 1 Нужен ли семафор, когда один процесс пишет, а другой читает?
  • 0 1066 — Не уникальный стол / псевдоним: «художники»
  • 0 2checkout.com способ оплаты в PHP
  • 1 Снимок экрана окна приложения WPF отображается на кнопке
  • 1 Javascript, имя функции с интерполяцией строк [дубликаты]
  • 1 Android: отображение неверной даты окончания (за день до фактической даты) в Календаре Google при добавлении события с намерением
  • 0 Как связать файл статической библиотеки на машине Linux
  • 1 TypeError: done не является функцией
  • 0 отображение заполнителя в текстовом поле формы
  • 1 Привязка элемента в дочернем представлении к свойству родительского ViewModel
  • 0 Почему MySQL выполняет сортировку файлов по этому запросу?
  • 0 Как построить точку по указателю в одну строку?
  • 0 Можно ли передать значение из ng.repeat в функцию JavaScript?
  • 0 Dojo dijit TabContainer — встроенный выбор с вкладками
  • 0 Как заменить и сократить гиперссылки в абзаце текста с помощью JavaScript / jQuery?
  • 1 как исправить E / RecyclerView: адаптер не подключен; проблема с пропуском макета
Читайте также:  Bootstrap user page html

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install fails on Windows 10 #120

pip install fails on Windows 10 #120

Comments

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\. \appdata\local\programs\python\python36-32\include\pyconfig.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 

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

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.

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.

Читайте также:  Css заливка по диагонали

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:\Users\sebas\AppData\Local\Programs\Python\Python35-32\Lib\idlelib’, ‘C:\Users\sebas\AppData\Local\Programs\Python\Python35-32\python35.zip’, ‘C:\Users\sebas\AppData\Local\Programs\Python\Python35-32\DLLs’, ‘C:\Users\sebas\AppData\Local\Programs\Python\Python35-32\lib’, ‘C:\Users\sebas\AppData\Local\Programs\Python\Python35-32’, ‘C:\Users\sebas\AppData\Local\Programs\Python\Python35-32\lib\site-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.

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 . \. \python\Scripts, 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.

Читайте также:  Html коды для android

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.

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!

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 . Programs\Python\Python36- 32\Scripts -!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:\Users\BoysenGunnar\AppData\Local\Programs\Python\Python36-32\Scripts>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:\Users\BoysenGunnar\AppData\Local\Programs\Python\Python36-32\Scripts>

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 , or mute the thread .

Источник

Оцените статью