我相信这个包需要Cython,所以我运行了以下命令。
conda install -c anaconda cython这个安装正确。
然后运行以下命令下载sparse_dot_topn:
conda install -c conda-forge sparse_dot_topn我看到以下错误:
解决环境:初始冻结解决失败。使用灵活的解决方案重试。
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 the existing python installation in your environment:
Specifications:
- sparse_dot_topn -> python[version='>=3.6,<3.7.0a0']
Your python: python=3.7
If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.
The following specifications were found to be incompatible with each other:
Package libcxx conflicts for:
python=3.7 -> libcxx[version='>=4.0.1']
sparse_dot_topn -> libcxx[version='>=9.0.0']
Package zlib conflicts for:
python=3.7 -> zlib[version='>=1.2.11,<1.3.0a0']
Package xz conflicts for:
python=3.7 -> xz[version='>=5.2.4,<6.0a0']
Package libffi conflicts for:
python=3.7 -> libffi[version='>=3.2.1,<4.0a0']
Package ncurses conflicts for:
python=3.7 -> ncurses[version='>=6.1,<7.0a0']
Package cython conflicts for:
sparse_dot_topn -> cython
Package openssl conflicts for:
python=3.7 -> openssl[version='>=1.0.2o,<1.0.3a|>=1.1.1a,<1.1.2a|>=1.1.1b,<1.1.2a|>=1.1.1c,<1.1.2a|>=1.1.1d,<1.1.2a']
Package readline conflicts for:
python=3.7 -> readline[version='>=7.0,<8.0a0']
Package numpy conflicts for:
sparse_dot_topn -> numpy
Package scipy conflicts for:
sparse_dot_topn -> scipy
Package sqlite conflicts for:
python=3.7 -> sqlite[version='>=3.24.0,<4.0a0|>=3.25.2,<4.0a0|>=3.25.3,<4.0a0|>=3.26.0,<4.0a0|>=3.27.2,<4.0a0|>=3.29.0,<4.0a0|>=3.30.1,<4.0a0']
Package tk conflicts for:
python=3.7 -> tk[version='>=8.6.7,<8.7.0a0|>=8.6.8,<8.7.0a0']
Package pip conflicts for:
python=3.7 -> pip根据错误日志,我想我需要一个更低版本的python?不是100%如何做到这一点,或者这甚至是问题所在。
发布于 2020-02-27 19:47:30
这将创建一个具有所需python版本的新环境。这是您的python版本的一个问题,我尝试了创建一个新的环境,它安装得很好。
conda create --name your_env "python>=3.6,<3.7"https://stackoverflow.com/questions/60440650
复制相似问题