|
|
发表于 2013-4-19 00:26:46
|
显示全部楼层
剪彤 发表于 2013-3-25 19:40 
您好!
我开发了一个pyserial打电话来电显示的软件,打包的时候遇到问题,总提示:importError:no ...
Download pySerial from http://pypi.python.org/pypi/pyserial - click on pyserial-2.6.tar.gz to download the library.
Run 7-Zip (Start -> All Programs -> 7-Zip -> 7-Zip File Manager).
Open the pyserial-2.6.tar.gz file with 7-Zip (File -> Open).
Double click the "dist" folder.
Single click on the "pyserial-2.6.tar" file and click the "Extract" button at the top of the window. When asked where to put the file, specify c:\Python27\Lib\site-packages\pyserial-2.6
Exit from 7-Zip
Now that you have downloaded pySerial, install it:
Open a command window (Start -> All Programs -> Accessories -> Command Prompt) and type into the command line: cd c:\Python27\Lib\site-packages-\pyserial-2.6
Install pySerial by typing this command: c:\Python27\python.exe setup.py install
--------------------------------------------------
讲的就是同样的问题。自己翻译吧。原链接http://stackoverflow.com/questions/8491111/pyserial-for-python-2-7-2 |
|