简体   繁体   English

在Windows 10上安装Jupyter Notebook时出错

[英]Error installing jupyter notebook on windows 10

When I try to install Jupyter Notebook with, 当我尝试使用安装Jupyter Notebook时,

pip3 install jupyter

I get the following, 我得到以下内容

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\\BuildTools\\VC\\Tools\\MSVC\\14.15.26726\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2 cywinpty.c winpty / cywinpty.c(598):致命错误C1083:无法打开包含文件:'winpty.h':没有此类文件或目录错误:命令'C:\\ Program Files(x86)\\ Microsoft Visual Studio \\ 2017 \\ BuildTools \\ VC \\ Tools \\ MSVC \\ 14.15.26726 \\ bin \\ HostX86 \\ x86 \\ cl.exe'失败,退出状态为2


Command "c:\\users\\user\\documents\\python\\python.exe -u -c "import setuptools, tokenize; 命令“ c:\\ users \\ user \\ documents \\ python \\ python.exe -u -c”导入设置工具,标记化; file ='C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-l1say6z1\\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-178wq6f4\\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-l1say6z1\\pywinpty\\ 文件 ='C:\\ Users \\ User \\ AppData \\ Local \\ Temp \\ pip-install-l1say6z1 \\ 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-178wq6f4 \\ install-record.txt-“单一版本-外部管理的--compile”失败,错误代码为1:C:\\ Users \\ User \\ AppData \\ Local \\ Temp \\ pip- install-l1say6z1 \\ pywinpty \\

Python version 3.7.0 , pip version 18.1 Python版本3.7.0,pip版本18.1

To solve this problem you should install activepython which is a distribution of ActiveState. 要解决此问题,您应该安装activepython,它是ActiveState的发行版。

ActiveState provides you with a quick, easy and ready to use run-time environment for the language you want to code (in this case python). ActiveState为您要编码的语言(在本例中为python)提供了一个快速,轻松且易于使用的运行时环境。

To download the installer, visit the link https://www.activestate.com/products/activepython/downloads/ , and select the OS you want, You'll be required to setup an account or login to download the files as it will set up all the dependencies on your machine specifically. 要下载安装程序,请访问链接https://www.activestate.com/products/activepython/downloads/ ,然后选择所需的操作系统。您将需要设置帐户或登录后才能下载文件。专门设置计算机上的所有依赖项。

Once you're logged in, head over to the Download Builds tab and select the your OS and download the installer for your machine. 登录后,转到“ Download Builds选项卡,然后选择您的操作系统并下载计算机的安装程序。 # Once installation is complete, restart your your device and try installing jupyter again. #安装完成后,重新启动设备,然后尝试再次安装jupyter It should install with no more issues 它应该安装没有更多问题

Good luck!! 祝好运!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM