Skip to content
New issue

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 3.7, prevents Jupyter install #118

Closed
2-5 opened this issue Dec 9, 2018 · 2 comments
Closed

pip install fails on 3.7, prevents Jupyter install #118

2-5 opened this issue Dec 9, 2018 · 2 comments
Milestone

Comments

@2-5
Copy link

2-5 commented Dec 9, 2018

Installation fails with error:
winpty/cywinpty.c(598): fatal error C1083: Cannot open include file: 'winpty.h': No such file or directory

(venv3) pip install pywinpty
Collecting pywinpty
  Using cached https://files.pythonhosted.org/packages/29/6c/c207ba85325e7d3fa5df3e2b51954705bb378de54065ee01ba89317c790d/pywinpty-0.5.4.tar.gz
Installing collected packages: pywinpty
  Running setup.py install for pywinpty ... error
    Complete output from command C:\Project\venv3\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-5xcqjygg\\pywinpty\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\USER\AppData\Local\Temp\pip-record-74im8oyr\install-record.txt --single-version-externally-managed --compile --install-headers C:\Project\venv3\include\site\python3.7\pywinpty:
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.7
    creating build\lib.win-amd64-3.7\winpty
    copying winpty\ptyprocess.py -> build\lib.win-amd64-3.7\winpty
    copying winpty\winpty_wrapper.py -> build\lib.win-amd64-3.7\winpty
    copying winpty\__init__.py -> build\lib.win-amd64-3.7\winpty
    creating build\lib.win-amd64-3.7\winpty\tests
    copying winpty\tests\test_cywinpty.py -> build\lib.win-amd64-3.7\winpty\tests
    copying winpty\tests\test_ptyprocess.py -> build\lib.win-amd64-3.7\winpty\tests
    copying winpty\tests\test_winpty_wrapper.py -> build\lib.win-amd64-3.7\winpty\tests
    copying winpty\tests\__init__.py -> build\lib.win-amd64-3.7\winpty\tests
    creating build\lib.win-amd64-3.7\winpty\_winpty
    copying winpty\_winpty\__init__.py -> build\lib.win-amd64-3.7\winpty\_winpty
    running build_ext
    building 'winpty.cywinpty' extension
    creating build\temp.win-amd64-3.7
    creating build\temp.win-amd64-3.7\Release
    creating build\temp.win-amd64-3.7\Release\winpty
    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Project\venv3\include -IC:\Python37\include -IC:\Python37\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\cppwinrt" /Tcwinpty/cywinpty.c /Fobuild\temp.win-amd64-3.7\Release\winpty/cywinpty.obj
    cywinpty.c
    winpty/cywinpty.c(598): fatal error C1083: Cannot open include file: 'winpty.h': No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.15.26726\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2

    ----------------------------------------
Command "C:\Project\venv3\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-5xcqjygg\\pywinpty\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\USER\AppData\Local\Temp\pip-record-74im8oyr\install-record.txt --single-version-externally-managed --compile --install-headers C:\Project\venv3\include\site\python3.7\pywinpty" failed with error code 1 in C:\Users\USER\AppData\Local\Temp\pip-install-5xcqjygg\pywinpty\
@ccordoba12 ccordoba12 added this to the v0.5.5 milestone Dec 9, 2018
@ccordoba12
Copy link
Contributor

We need to create wheels for Python 3.7 to solve this error.

@kikumar3189
Copy link

Facing the same issue for Python 3.8 32 Bit on Win 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants