0
我的系統中安裝了Python 2.7版本,它是Windows OS 64位。Pyserial問題:無法加載
我安裝pyserial,從頁面:https://pypi.python.org/pypi/pyserial
現在,問題是,我得到一個錯誤:
C:\ RK \ Python27 \ pythonprograms>蟒蛇
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.
當我進口其他包裝時,他們正在成功導入:
>>> import numpy
>>>
另外,如果我進口pyserial目錄"C:\rk\Python27\python"
:
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
>>>
是什麼原因,如何解決這個問題?
請幫助,謝謝。