因为服务器没有网,所以用conda设置环境的时候无法下载,应该先配置下代理。
1.
vi ~/.bashrc
export http_proxy=ip:port
export https_proxy=ip:port
注意ip:port没有“”!!!!!
2.
vi ~/.condarc
proxy_servers:
http: http://ip:port
https: https://ip:port
因为服务器没有网,所以用conda设置环境的时候无法下载,应该先配置下代理。
1.
vi ~/.bashrc
export http_proxy=ip:port
export https_proxy=ip:port
注意ip:port没有“”!!!!!
2.
vi ~/.condarc
proxy_servers:
http: http://ip:port
https: https://ip:port