[problem help] pip3装个模块胆战心惊的
Tofloor
poster avatar
howardth
deepin
2024-08-25 21:22
Author

要么virtual env要么就无视风险了, 系统是用了多少python的脚本啊?

pip3 install pyotp -i https://pypi.tuna.tsinghua.edu.cn/simple --break-system-packages

Reply Favorite View the author
All Replies
把一切操作变成GUI
deepin
Backbone of ecological co-construction group
2024-08-25 23:33
#1

你可以先改掉lib里面的/usr/lib/python3.12/EXTERNALLY-MANAGED后缀为EXTERNALLY-MANAGED.bk

Reply View the author
deepinuser17
deepin
2024-08-26 08:22
#2

我也遇到了这个问题。

这个链接提供了线索:

https://stackoverflow.com/questions/75608323/how-do-i-solve-error-externally-managed-environment-every-time-i-use-pip-3

Reply View the author
neko
deepin
Ecological co-builder
2024-08-26 08:48
#3

系统级的pip包安装只建议使用apt install python3-包名。

否则最好用虚拟环境与系统隔离。

Reply View the author
pkcn
deepin
2024-08-26 09:39
#4

使用虚拟环境吧,你这样直接装依赖很容易把系统环境搞崩,容易出现一些莫名奇妙的BUG

Reply View the author