Windows 10上安装Jupyter Notebook时出现错误

时间:2018-08-19 12:38:29

标签: python sdk jupyter-notebook

我在命令提示符下运行pip install jupyter,但是出现以下错误

building 'winpty.cywinpty' extension
error: Microsoft Visual C++ 14.0 is required. Get it with ...(a URL)

因此,我安装了Visual Studio Build Tools 2017 15.8.1,并选择了默认选项,包括Windows 10 SDK(10.0.17134.0),但是随后在运行pip install jupyter时出现另一个错误:

cywinpty.c
winpty/cywinpty.c(598): fetal error C1083: Cannot include file: 'winpty.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.15.26726\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2

----------------------------------------------------------------------------
Command "c:\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\cyh\\AppData\\Local\\Temp\\pip-install-ffl96cvn\\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\cyh\AppData\Local\Temp\pip-record-1psgkfzm\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\cyh\AppData\Local\Temp\pip-install-ffl96cvn\pywinpty\

这些错误是什么,我该怎么办?

谢谢

0 个答案:

没有答案