为 Python 3.7.3 安装 vtk 工具包
Install vtk toolkit for Python 3.7.3
我正在安装一台新的 Windows 10 PC 工作。我在尝试为 Python 3.7.3 安装 vtk 8.1.2 时遇到问题,这是我电脑上唯一的版本。
这就是我在 pip 19.1.1 和 wget 上的尝试:
C:\Users\staff>pip install vtk
Collecting vtk
ERROR: Could not find a version that satisfies the requirement vtk (from
versions: none)
ERROR: No matching distribution found for vtk
C:\Users\staff>wget https://files.pythonhosted.org/packages/6b/55/.../vtk-8.1.2-cp37-cp37m-win_amd64.whl
--2019-06-20 08:52:49--
https://files.pythonhosted.org/packages/6b/55/.../vtk-8.1.2-cp37-cp37m-win_amd64.whl
Resolving files.pythonhosted.org (files.pythonhosted.org)... 151.101.29.63
Connecting to files.pythonhosted.org
(files.pythonhosted.org)|151.101.29.63|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 24390482 (23M) [binary/octet-stream]
Saving to: 'vtk-8.1.2-cp37-cp37m-win_amd64.whl'
vtk-8.1.2-cp37-cp37m-win_amd6 100%
[==========================>] 23.26M 52.7MB/s in 0.4s
2019-06-20 08:52:50 (52.7 MB/s) - 'vtk-8.1.2-cp37-cp37m-win_amd64.whl' saved
[24390482/24390482]
C:\Users\staff>pip install vtk-8.1.2-cp37-cp37m-win_amd64.whl
ERROR: vtk-8.1.2-cp37-cp37m-win_amd64.whl is not a supported wheel on this
platform.
出于格式化目的,我省略了完整的 wget link。
我宁愿让 PC 没有虚拟环境和多个 Python 版本以避免混乱。你有什么建议吗?
您的 Python 是 32 位版本,而 vtk 仅 provides 64 位版本。安装 64 位 Python 并重试。
我正在安装一台新的 Windows 10 PC 工作。我在尝试为 Python 3.7.3 安装 vtk 8.1.2 时遇到问题,这是我电脑上唯一的版本。
这就是我在 pip 19.1.1 和 wget 上的尝试:
C:\Users\staff>pip install vtk
Collecting vtk
ERROR: Could not find a version that satisfies the requirement vtk (from
versions: none)
ERROR: No matching distribution found for vtk
C:\Users\staff>wget https://files.pythonhosted.org/packages/6b/55/.../vtk-8.1.2-cp37-cp37m-win_amd64.whl
--2019-06-20 08:52:49--
https://files.pythonhosted.org/packages/6b/55/.../vtk-8.1.2-cp37-cp37m-win_amd64.whl
Resolving files.pythonhosted.org (files.pythonhosted.org)... 151.101.29.63
Connecting to files.pythonhosted.org
(files.pythonhosted.org)|151.101.29.63|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 24390482 (23M) [binary/octet-stream]
Saving to: 'vtk-8.1.2-cp37-cp37m-win_amd64.whl'
vtk-8.1.2-cp37-cp37m-win_amd6 100%
[==========================>] 23.26M 52.7MB/s in 0.4s
2019-06-20 08:52:50 (52.7 MB/s) - 'vtk-8.1.2-cp37-cp37m-win_amd64.whl' saved
[24390482/24390482]
C:\Users\staff>pip install vtk-8.1.2-cp37-cp37m-win_amd64.whl
ERROR: vtk-8.1.2-cp37-cp37m-win_amd64.whl is not a supported wheel on this
platform.
出于格式化目的,我省略了完整的 wget link。 我宁愿让 PC 没有虚拟环境和多个 Python 版本以避免混乱。你有什么建议吗?
您的 Python 是 32 位版本,而 vtk 仅 provides 64 位版本。安装 64 位 Python 并重试。