Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为什么我可以使用:
sudo pip install [package]
在我的机器上,但在另一个我必须使用:
sudo -E pip install [package]
我怎样才能使它不需要-E?
编辑:
我很确定它与为 root 设置环境变量有关。但是将路径、http_proxy、https_proxy、ftp_prxy 和 socks_proxy 添加到 /etc/environment 似乎也不起作用。
每个用户是否有某种方式可以覆盖环境变量?