【问题标题】:Problems installing Mayavi to Anaconda (Windows)将 Mayavi 安装到 Anaconda 时出现问题 (Windows)
【发布时间】: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 创建新环境?

标签: python anaconda mayavi


【解决方案1】:

也许这会对你有所帮助。您可以在终端中将包安装为 .whl

转到此站点:link 并搜索 (Strg + F) 为您的包 (mayavi)。单击带有您的 python 版本的链接。 该文件将自动下载。然后输入你的终端

pip install <path_of_downloaded_file>

.whl 文件的名称如示例:

mayavi‑4.7.1+vtk82‑cp<your_version>‑cp<your_version>‑win_amd64.whl

注意:仅适用于 Windows

【讨论】:

    猜你喜欢
    • 2017-06-17
    • 1970-01-01
    • 1970-01-01
    • 2018-07-17
    • 2019-08-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-03
    相关资源
    最近更新 更多