我无法使用 pip 安装模块

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.

最后加--user

pip3 install package_name --user

如果您在 linux 中,请尝试在命令的开头使用 sudo。也许你正在使用系统作为 root

我会尝试在终端中通过以下命令使用 anaconda:

conda install -c anaconda pip 

如果你没有 anaconda:

pip install conda