【发布时间】:2021-10-17 10:25:08
【问题描述】:
我正在使用 Anaconda 并想安装 mayavi 模块。但是,无论我使用 conda 还是 pip 命令,它都不起作用。如果我使用 conda 命令,我会得到:
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
Specifications:
- mayavi -> python[version='>=3.6,<3.7.0a0|>=3.7,<3.8.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.
如果我使用 pip 命令,我会得到这个,但没有任何反应:
Building wheels for collected packages: mayavi
Building wheel for mayavi (setup.py) ... \
我知道其他人在安装 mayavi 时也遇到了一些问题,但直到现在还没有解决方案对我有用。如果有人有可以提供帮助的想法,请提前非常感谢!
【问题讨论】:
-
您在该环境中拥有的 python 版本似乎不兼容。您是否尝试过使用
conda create -n envName -c conda-forge python mayavi创建新环境?