有时候pip安装模块会报错:
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
需要建立虚拟环境解决。
需要先安装python3.8-venv
cd /usr/local/bin
#安装venv
python3 -m venv tutorial-env
#声明变量,重新进入终端失效,需要重新声明一次.
source /usr/local/bin/tutorial-env/bin/activate
最后于 22/08.24 13:08
被zsxwz编辑
,原因:
上一篇:
python 多线程腾讯课堂下载器下一篇:
github release、archive以及项目文件的加速项目