首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >努力在Anaconda上安装sparse_dot_topn

努力在Anaconda上安装sparse_dot_topn
EN

Stack Overflow用户
提问于 2020-02-27 19:41:10
回答 1查看 831关注 0票数 0

我相信这个包需要Cython,所以我运行了以下命令。

代码语言:javascript
复制
conda install -c anaconda cython

这个安装正确。

然后运行以下命令下载sparse_dot_topn:

代码语言:javascript
复制
conda install -c conda-forge sparse_dot_topn

我看到以下错误:

解决环境:初始冻结解决失败。使用灵活的解决方案重试。

代码语言:javascript
复制
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%如何做到这一点,或者这甚至是问题所在。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-02-27 19:47:30

这将创建一个具有所需python版本的新环境。这是您的python版本的一个问题,我尝试了创建一个新的环境,它安装得很好。

代码语言:javascript
复制
conda create --name your_env  "python>=3.6,<3.7"
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60440650

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档