首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未能使用Anaconda安装软件包

未能使用Anaconda安装软件包
EN

Stack Overflow用户
提问于 2020-09-07 09:18:29
回答 1查看 1K关注 0票数 0

我想安装PythonOCC。从正式文档(http://www.pythonocc.org/download/)中,我看到我必须使用:

代码语言:javascript
复制
conda install -c conda-forge -c dlr-sc -c pythonocc -c oce pythonocc-core==0.18.1

因此,在基本终端上,我输入了这个命令,但是我遇到了一些冲突,我无法交互它们或找到解决方案,因为这是我第一次使用Anaconda。我在Ubuntu 20.04上。

这是错误消息:

代码语言:javascript
复制
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 the existing python installation in your environment:

Specifications:

  - pythonocc-core==0.18.1 -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0']

Your python: python=3.8

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 your CUDA driver:

  - feature:/linux-64::__cuda==10.2=0
  - feature:|@/linux-64::__cuda==10.2=0

Your installed CUDA driver is: 10.2

对从这里开始有什么想法吗?

编辑:在遵循用户的vc 74建议之后,我尝试了以下命令:

代码语言:javascript
复制
conda create -n py36 python=3.6
conda activate py36
conda install -c conda-forge -c dlr-sc -c pythonocc -c oce pythonocc-core==0.18.1

这就是我遇到的新冲突:

代码语言: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 each other:

Output in format: Requested package -> Available versionsThe following specifications were found to be incompatible with your CUDA driver:

  - feature:/linux-64::__cuda==10.2=0

Your installed CUDA driver is: 10.2
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-09-10 03:38:38

根据Conda UnsatisfiableError on GitHub的说法,这是包本身的meta.yaml问题,根本不是您的错。我建议与PythonOCC模块的制造商一起打开一张支持票。然后他们就能解决这个问题了。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63774720

复制
相关文章

相似问题

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