python 无法使用pip安装Jupyter Notebook

kxkpmulp  于 2023-08-02  发布在  Python
关注(0)|答案(1)|浏览(235)

当我尝试pip install jupyter时,我遇到了这个错误。我该怎么办?

WARNING: The scripts jupyter-migrate.exe, jupyter-troubleshoot.exe and jupyter.exe are installed in 'C:\Users\YOOZBOARD\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'C:\\Users\\YOOZBOARD\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python310\\site-packages\\jedi\\third_party\\typeshed\\third_party\\2and3\\requests\\packages\\urllib3\\packages\\ssl_match_hostname\\_implementation.pyi'

字符串
jupyter安装

gopyfrb3

gopyfrb31#

您可以先尝试conda update condapip install --upgrade pip
然后,如果你愿意,你可以创建一个新的虚拟环境,并尝试在那里安装Jupyter和其他包。conda create --name yourenv然后激活虚拟环境:conda activate yourenv
你可以使用conda安装jupyter:

conda install jupyter

字符串
或者使用pip安装Jupyter:

pip install jupyter


然后在虚拟环境中,您可以通过jupyter notebook启动jupyter notebook。

相关问题