python - 如何解决 conda 代理配置中出现的错误?

标签 python conda rdkit

我正在尝试在 ubuntu 上安装 Rdkit,但 conda 配置有问题。

我已经在桌面上重新安装了anaconda3和python3版本,并从头开始安装。

当我运行命令时:conda create -c rdkit -n my-rdkit-env rdkit

我遇到的错误是这个:

Collecting package metadata (current_repodata.json): failed

ProxyError: Conda cannot proceed due to an error in your proxy configuration.
Check for typos and other configuration errors in any '.netrc' file in your home directory,
any environment variables ending in '_PROXY', and any other system-wide proxy
configuration settings.

有人知道如何解决这个问题,以便我可以安装名为 Rdkit 的程序吗?

最佳答案

使用命令在 Anaconda 提示符中创建新环境时出现相同的错误消息

conda create -n envname

请参阅另一个类似问题中的答案。它为我解决了问题:https://stackoverflow.com/a/68724703/9455395

打开 .condarc 文件并键入代理服务器,如下所示:

proxy_servers:
   http: proxyserver.org:portNumber
   https: proxyserver.org:portNumber

确保输入不包含“http://”或“https://”。只需在两者中使用相同的服务器地址即可。

另一位用户还添加了将 anaconda.org 和 anaconda.com 添加到代理服务器异常(exception)的注释。我不需要执行此步骤。

关于python - 如何解决 conda 代理配置中出现的错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58797984/

相关文章:

python - IPython.display : how to change width, 显示图像的高度和分辨率

python - sorted() 使用生成器表达式而不是列表

python - 详细日志缩写在 SVC、scikit-learn 中的含义

python - Anaconda 没有创建完整的环境

macos - osx conda install boost 用 gcc 编译

regression - 如何从 SMILES 获取分子结构信息

python - Pandas :在给定条件下填充nans

python - 使用在线 LDA 对测试数据进行预测

python - 为 python 2 和 3 安装了 Anaconda。无法运行 2

python - 将 react 应用于分子 RDKit 时出现 sanitizer 错误