Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/301.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是64位的,numpy是32位的->;冲突。如何获得numpy 64位_Python_Python 3.x_Windows_Numpy_Anaconda - Fatal编程技术网

蟒蛇:Python是64位的,numpy是32位的->;冲突。如何获得numpy 64位

蟒蛇:Python是64位的,numpy是32位的->;冲突。如何获得numpy 64位,python,python-3.x,windows,numpy,anaconda,Python,Python 3.x,Windows,Numpy,Anaconda,如何将Anaconda发行版中的numpy从32位更改/升级到64位 我的Windows 10 Anaconda安装安装了64位版本的Python。但它显然也安装了32位版本的numpy (base) C:\Users\i7>python Python 3.7.4 (default, Aug 9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32 Type "help", "copyright",

如何将Anaconda发行版中的numpy从32位更改/升级到64位

我的Windows 10 Anaconda安装安装了64位版本的Python。但它显然也安装了32位版本的numpy

(base) C:\Users\i7>python
Python 3.7.4 (default, Aug  9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>   
导致:

>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\i7\AppData\Roaming\Python\Python37\site-packages\numpy\__init__.py", line 142, in <module>
    from . import core
  File "C:\Users\i7\AppData\Roaming\Python\Python37\site-packages\numpy\core\__init__.py", line 23, in <module>
    WinDLL(os.path.abspath(filename))
  File "C:\Users\i7\Anaconda3\lib\ctypes\__init__.py", line 364, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 is not a valid Win32 application
>>>
我相信这就是我在这里报告的问题的原因


如果其他人遇到这个问题,我解决了这个问题。问题在于之前卸载Python3.7时留下的一些目录在卸载过程中没有被删除

File "C:\Users\i7\AppData\Roaming\Python\Python37\site-packages\numpy\__init__.py",

一旦我删除了这个目录(
C:\Users\i7\AppData\Roaming\Python\Python37
),一切都正常了。关于如何在windows 10上使用python 3.7的anaconda软件包的评论值得称赞?通过@FlyingTeller

万一有人遇到这个问题,我解决了这个问题。问题在于之前卸载Python3.7时留下的一些目录在卸载过程中没有被删除

File "C:\Users\i7\AppData\Roaming\Python\Python37\site-packages\numpy\__init__.py",
一旦我删除了这个目录(
C:\Users\i7\AppData\Roaming\Python\Python37
),一切都正常了。关于如何在windows 10上使用python 3.7的anaconda软件包的评论值得称赞?作者@FlyingTeller