修改anaconda的配置文件,位置在c:\User(或“用户”)\current_user(当前用户)\.condarc,将以下内容拷贝进去, 替换原有内容, 修改 http://proxy.yourorg.org:port 为本地的代理地址

channels:
- defaults
 
# Show channel URLs when displaying what is going to be downloaded and
# in 'conda list'. The default is False.
show_channel_urls: True
allow_other_channels: True
 
proxy_servers:
    http: http://proxy.yourorg.org:port
    https: http://proxy.yourorg.org:port
 
 
ssl_verify: False

另外,如果是pip的话,只需要在安装包的时候用如下格式(比如tensorflow):

  pip --proxy=http://username:password@proxyURL:portNumber install tensorflow

 

相关文章:

  • 2022-12-23
  • 2021-11-15
  • 2023-03-17
  • 2022-12-23
  • 2021-05-25
  • 2022-12-23
  • 2021-11-11
猜你喜欢
  • 2021-11-27
  • 2021-11-01
  • 2021-10-10
  • 2021-05-01
  • 2021-07-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案