Python Pyserial问题:无法加载

Python Pyserial问题:无法加载,python,python-2.7,Python,Python 2.7,我的系统中安装了Python 2.7版,即Windows OS 64位 我从以下页面安装了pyserial: 现在,问题是我遇到了一个错误: C:\rk\Python27\pythonprograms>python Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (I 32 Type "help", "copyright", "credits" or "license" for more informati >

我的系统中安装了Python 2.7版,即Windows OS 64位

我从以下页面安装了pyserial:

现在,问题是我遇到了一个错误:

C:\rk\Python27\pythonprograms>python

Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (I
32
Type "help", "copyright", "credits" or "license" for more informati
>>> import serial
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\rk\Python27\lib\site-packages\serial\__init__.py", line
e>
    from serial.serialwin32 import *
  File "C:\rk\Python27\lib\site-packages\serial\serialwin32.py", li
dule>
    import ctypes
  File "C:\rk\Python27\lib\ctypes\__init__.py", line 10, in <module
    from _ctypes import Union, Structure, Array
ImportError: DLL load failed: %1 is not a valid Win32 application.
另外,如果我在目录
“C:\rk\Python27\python”
中导入pyserial:

原因是什么?如何解决此问题

请帮忙,谢谢。

问题已解决

我是以32位的方式打开Python exe的,因为我已经安装了Python2.7的64位版本和amd扩展

我最近安装了python版本,但是忘记了更改旧的编译器

>>> import numpy
>>>
C:\rk\Python27>python
Python 2.7 (r27:82525, Jul  4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import serial
>>>