Error installing Jupyter & pywinpty (Python) resolved
I'm trying to install Jupyter on Python 3.7 and seem to be stumbling over this error again and again;
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\\BuildTools\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
I get the same error when attempting to install pywinpty via pip.
I have installed & reinstalled the build tools to no avail and the command window is elevated - any ideas?
UPDATE: Not quite resolved in 3.7 - but it worked fine in 3.6, I've rolled back.
Missing build time requirements in pyproject.toml for pywinpty>=1.1.0; os_name
== "nt" from https://files.pythonhosted.org/packages/d3/89/2b9113eabacfe3bbebcd
f95c24772e2267c7b6b9fed6e35bffba2080a4c1/pywinpty-2.0.10.tar.gz#sha256=cdbb5694c
f8c7242c2ecfaca35c545d31fa5d5814c3d67a4e628f803f680ebea (from terminado>=0.8.3->
notebook->jupyter): 'setuptools' and 'wheel'.
This version of pip does not implement PEP 517 so it cannot build a wheel with
out 'setuptools' and 'wheel'.
Cache entry deserialization failed, entry ignored
Solution:
Temporarily, until standard way does not work for Python 3.7, you can install pywinpty
manually by using the prebuilt wheel from Gohlke's collection and then install jupyter
with pip
.
To install manually (from cmd or Powershell) use:
pip install drive:\path\to\the\wheel\pywinpty-0.5.4-cp37-cp37m-win_amd64.whl
No comments:
Post a Comment
Thanks for your comments