easy_install鸡蛋不能在我的mac上导入

时间:2011-05-03 08:53:41

标签: python macos easy-install

我已经启动了python 2.6并在ol'macbook上运行,但无论出于何种原因我的easy_install都无法正确导入。

WAT DO? pwd
/Library/Python/2.6/site-packages

WAT DO? ls
Django-1.2.1-py2.6.egg
PIL-1.1.7-py2.6-macosx-10.6-universal.egg
README
easy-install.pth
pyserial-2.5-py2.6.egg

WAT DO? echo $PATH
/Library/Python/2.6/site-packages/Django-1.2.1-py2.6.egg/django:/Library/Python/2.6/site-packages/:/Library/Frameworks/Python.framework/Versions/2.6/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/mysql/bin:/usr/X11/bin

WAT DO? python
Python 2.6.4 (r264:75821M, Oct 27 2009, 19:48:32) 
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import serial
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named serial

有什么建议吗?

1 个答案:

答案 0 :(得分:0)

我不知道easySinstall对PySerial的问题是什么,但我决定尝试另一种方法。刚从源头安装。作品。