[英]I cannot install module with pip
After installing python 3.8, I cannot install module with pip
:安装 python 3.8 后,我无法使用
pip
安装模块:
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/.local/lib/python3.8/site-packages/enum34-1.1.10.dist-info'
Check the permissions.
Add --user
at the end最后添加
--user
pip3 install package_name --user
Try to use sudo
in the beginning of the command if you are in linux.如果您在 linux 中,请尝试在命令开头使用
sudo
。 Maybe you are bot using the system as a root也许你正在使用系统作为 root
I would try to use anaconda with the following command in the terminal:我会尝试在终端中使用 anaconda 和以下命令:
conda install -c anaconda pip
If you don't have anaconda:如果您没有 anaconda:
pip install conda
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.