gpt4 book ai didi

python - conda 安装psycopg2错误

转载 作者:行者123 更新时间:2023-12-03 09:31:01 24 4
gpt4 key购买 nike

新的mackbookpro正在运行Catalina。使用自制软件安装了anaconda。尝试使用conda install -c anaconda psycopg2命令安装psycopg2,但由于软件包冲突而失败。以下是尝试安装的一些输出:

$ conda install -c anaconda psycopg2
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: /
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
failed \

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versions

Package six conflicts for:
pyopenssl -> cryptography[version='>=2.8'] -> six[version='>=1.4.1']
pytest-doctestplus -> pytest[version='>=3.0'] -> six[version='>=1.10.0']
python-dateutil -> six[version='>=1.5']
nltk -> six

对正在发生的事情或如何解决有任何想法吗?

最佳答案

原因可能是[anaconda == 2020.02]与[70+ PACKAGES]之间存在太多冲突
尝试以下对我有用的方法:
conda -V
conda更新-n基本conda
为了确保您使用的是版本
conda 4.8.2
然后conda update --all然后以下软件包将被降级:
anaconda 2020.02-py37_0->自定义-py37_1
然后conda install psycopg2然后将安装软件包libpq,psycopg2,将更新某些软件包,并由更高优先级的 channel 取代一些软件包。

关于python - conda 安装psycopg2错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61003308/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com