0
点赞
收藏
分享

微信扫一扫

Requirement already satisfied: jupyter in ./.local/lib/python3.10/site-packages (1.0.0)

王小沫 2022-05-10 阅读 67

安装环境

y@dh:~/.jupyter$ sudo lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy

问题

pip3 install jupyter
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: jupyter in ./.local/lib/python3.10/site-packages (1.0.0)
Requirement already satisfied: ipykernel in ./.local/lib/python3.10/site-packages (from jupyter) (6.13.0)
Requirement already satisfied: notebook in ./.local/lib/python3.10/site-packages (from jupyter) (6.4.11)
Requirement already satisfied: nbconvert in ./.local/lib/python3.10/site-packages (from jupyter) (6.5.0)
Requirement already satisfied: ipywidgets in ./.local/lib/python3.10/site-packages (from jupyter) (7.7.0)
Requirement already satisfied: jupyter-console in ./.local/lib/python3.10/site-packages (from jupyter) (6.4.3)
Requirement already satisfied: qtconsole in ./.local/lib/python3.10/site-packages (from jupyter) (5.3.0)
Requirement already satisfied: packaging in ./.local/lib/python3.10/site-packages (from ipykernel->jupyter) (21.3)
Requirement already satisfied: ipython>=7.23.1 in ./.local/lib/python3.10/site-packages (from ipykernel->jupyter) (8.3.0)
...
.Requirement already satisfied: parso<0.9.0,>=0.8.0 in /home/y/.local/lib/python3.10/site-packages (from jedi>=0.16->ipython>=7.23.1->ipykernel->jupyter) (0.8.3)
Requirement already satisfied: cffi>=1.0.1 in /home/y/.local/lib/python3.10/site-packages (from argon2-cffi-bindings->argon2-cffi->notebook->jupyter) (1.15.0)
Requirement already satisfied: asttokens in /home/y/.local/lib/python3.10/site-packages (from stack-data->ipython>=7.23.1->ipykernel->jupyter) (2.0.5)
Requirement already satisfied: executing in /home/y/.local/lib/python3.10/site-packages (from stack-data->ipython>=7.23.1->ipykernel->jupyter) (0.8.3)
Requirement already satisfied: pure-eval in /home/y/.local/lib/python3.10/site-packages (from stack-data->ipython>=7.23.1->ipykernel->jupyter) (0.2.2)
Requirement already satisfied: pycparser in /home/y/.local/lib/python3.10/site-packages (from cffi>=1.0.1->argon2-cffi-bindings->argon2-cffi->notebook->jupyter) (2.21)

解决办法


Defaulting to user installation because normal site-packages is not writeable


y@dh:~$ python3 -V
Python 3.10.4
y@dh:~$ cd /usr/local/lib/python3.10/dist-packages/
y@dh:/usr/local/lib/python3.10/dist-packages$ ls
# 这个目录无文件

# /home/y/.local/lib/python3.10/site-packages 就是有数据的目录

安装指定文件夹
pip3 install --target=/home/y/.local/lib/python3.10/site-packages jupyter
举报

相关推荐

0 条评论