conda 安装 psycopg2 错误
conda install psycopg2 errors
新的 mackbookpro 运行 卡特琳娜。使用自制软件安装 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 update -n base conda
确保你在版本
畅达 4.8.2
然后
conda update --all
那么以下软件包将被降级:
蟒蛇 2020.02-py37_0 --> custom-py37_1
然后
conda install psycopg2
然后将安装 libpq、psycopg2 包,一些包将被更新,一些包将被更高优先级的频道取代。
我今天遇到了完全相同的情况,无法使用 conda 包管理器安装 psycopg2。但是当我尝试在 Anaconda Prompt 中用 pip 做同样的事情时,安装非常完美,只用了不到一分钟:
pip install psycopg2
新的 mackbookpro 运行 卡特琳娜。使用自制软件安装 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 update -n base conda
确保你在版本 畅达 4.8.2 然后
conda update --all
那么以下软件包将被降级:
蟒蛇 2020.02-py37_0 --> custom-py37_1
然后
conda install psycopg2
然后将安装 libpq、psycopg2 包,一些包将被更新,一些包将被更高优先级的频道取代。
我今天遇到了完全相同的情况,无法使用 conda 包管理器安装 psycopg2。但是当我尝试在 Anaconda Prompt 中用 pip 做同样的事情时,安装非常完美,只用了不到一分钟:
pip install psycopg2