Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/apache-kafka/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
安装适用于Python 3.7.3的vtk工具包_Python_Pip_Wget_Vtk_Python 3.7 - Fatal编程技术网

安装适用于Python 3.7.3的vtk工具包

安装适用于Python 3.7.3的vtk工具包,python,pip,wget,vtk,python-3.7,Python,Pip,Wget,Vtk,Python 3.7,我正在工作中安装一台新的Windows10电脑。我在尝试为Python3.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 m

我正在工作中安装一台新的Windows10电脑。我在尝试为Python3.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.
出于格式化的目的,我省略了全文。
为了避免混乱,我宁愿让电脑没有虚拟环境和多个Python版本。您有什么建议吗?

您的Python是32位的,而vtk只有64位版本。安装64位Python并重试。

这无疑解决了问题!我无意中安装了32位版本。出于好奇,您是根据我附加的错误消息进行调试,还是因为没有其他解释?首先,我查看了发行版列表,发现只有64位控制盘。然后我看到“错误:vtk-8.1.2-cp37-cp37m-win_amd64.whl在此平台上不受支持”。这意味着您的Python不是3.7,操作系统不是Windows,或者Python不是64位。我还知道Python网站默认显示32位Python供下载;要下载64位,您需要在下载列表中找到它。因为32/64位是一个常见的问题。非常有用!再次感谢你的帮助。