Ern*_*561 5 python python-2.7 anaconda
我尝试从https://conda.anaconda.org安装软件包时遇到问题.当我尝试例如'conda install --channel https://conda.anaconda.org/IOOS rtree'时,它会显示它将要安装的依赖项,但是当我接受时,它会陷入'获取包... '.我认为问题在于我支持我的公司代理,但当我检查我的代理设置时,我得到:
C:\Windows\system32>netsh.exe winhttp show proxy
gets
Current WinHTTP proxy settings:
Direct access (no proxy server).
Run Code Online (Sandbox Code Playgroud)
所以我似乎不在代理之后.我在Windows 7中使用Anaconda 2.4.0.
有谁能解决这个问题?
我在 conda 中遇到了类似的问题。尽管我已在代理服务器的环境变量中进行了适当的设置,但 conda install 仍挂起。
我使用了您使用的 netsh 命令:
C:\Users\tauseef>netsh.exe winhttp show proxy
Current WinHTTP proxy settings:
Direct access (no proxy server).
Run Code Online (Sandbox Code Playgroud)
我看到它没有返回代理服务器,但实际上我确信我的系统位于代理服务器后面。
因此,我在 Windows7 上的主目录 (C:\Users\tauseef) 中创建了一个 .condarc 文件(如此处所述:如何为 Anaconda 创建 .condarc 文件?),您可以使用以下命令创建一个非常简单的外观.condarc 文件(参见https://github.com/conda/conda/issues/1757):
conda config --add channels r
Run Code Online (Sandbox Code Playgroud)
我在 .condarc 文件中输入了以下几行
# Proxy settings: http://[username]:[password]@[server]:[port]
proxy_servers:
http: http://ef.fake.company.com:8080
https: https://ef.fake.company.com:8080
Run Code Online (Sandbox Code Playgroud)
现在我可以使用安装包(比如 mingw)
conda install mingw
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
7787 次 |
最近记录: |