简体   繁体   中英

Install vtk toolkit for Python 3.7.3

I'm setting up a new Windows 10 PC at work. I'm facing issues in trying to install vtk 8.1.2 for Python 3.7.3, which is the only version there is on my PC.

This is what I get trying with pip 19.1.1 and 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.

I omit the full wget link for formatting purposes. I would prefer to keep the PC without virtual environments and multiple Python versions to avoid mess. Do you have any suggestion?

Your Python is 32-bit and vtk only provides 64-bit builds. Install 64-bit Python and retry.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM