错误:由于环境错误而无法安装软件包无法执行“-用户”安装

问题描述

在Google Cloud Platform中安装Ubuntu(20.04)之后,创建一个虚拟环境。

python3 -m venv env

并使用虚拟环境

source env/bin/activate

卡在安装软件包(无法安装任何软件包)上

pip3 install pandas 

获取错误

ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/home/allensun623/Web-Practice/mid_pipe/env/lib/python3.8/site-packages/pandas'
Consider using the `--user` option or check the permissions.

添加--user后,出现另一个错误

ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.

曾经尝试过几种解决方案,但是没有一个可行。 有人知道如何解决吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)