![错误:由于 OSError 导致无法安装软件包:无法解析:代理:端口](https://linux22.com/image/950212/%E9%94%99%E8%AF%AF%EF%BC%9A%E7%94%B1%E4%BA%8E%20OSError%20%E5%AF%BC%E8%87%B4%E6%97%A0%E6%B3%95%E5%AE%89%E8%A3%85%E8%BD%AF%E4%BB%B6%E5%8C%85%EF%BC%9A%E6%97%A0%E6%B3%95%E8%A7%A3%E6%9E%90%EF%BC%9A%E4%BB%A3%E7%90%86%EF%BC%9A%E7%AB%AF%E5%8F%A3.png)
我想使用 pip3 安装一个包,但是发生了以下情况:
Ubuntu@User:~$ pip3 install <package-name>
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not install packages due to an OSError: Failed to parse: https://<proxy>:<port>/
有人能帮我吗?我想我应该更改代理设置,但是该怎么做呢?
答案1
最后是代理配置,问题解决了!
git config --global --unset http.proxy
git config --global --unset https.proxy
unset http_proxy
unset ftp_proxy
unset all_proxy
unset https_proxy
unset no_proxy