2016-11-30 141 views
0

我有嘗試使用PIP安裝pyserial爲Python 3.5.2真正的麻煩,我試圖安裝使用「須藤的easy_install點子」點子。無模塊命名的extern

我不斷收到此錯誤信息:

sudo easy_install pip 
Traceback (most recent call last): 

File "/usr/local/bin/easy_install", line 11, in <module> 
    load_entry_point('setuptools==29.0.1', 'console_scripts', 'easy_install')() 
    File"/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 565, in load_entry_point 
    return get_distribution(dist).load_entry_point(group, name) 

File"/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2697, in load_entry_point 
    return ep.load() 
    File"/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2370, in load 
    return self.resolve() 
    File"/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2376, in resolve 
    module = __import__(self.module_name, fromlist=['__name__'], level=0) 

File "build/bdist.macosx-10.12-intel/egg/setuptools/__init__.py", line 10, in <module> 

File "build/bdist.macosx-10.12 intel/egg/setuptools/extern/__init__.py", line 1, in <module> 

ImportError: No module named extern 

任何幫助,將不勝感激。

+0

這裏的信息有關使用'pip':http://stackoverflow.com/questions/40873272/does-the-python-org-installer-of-python-come-with-pip-and-how-do-i -use-it/40874059#40874059 – Dadep

+0

pip install --upgrade pip setuptools –

回答

0

運行sudo easy_install pip將安裝PIP的Python 2,你不想要,如果你使用Python 3

你可能已經安裝了PIP的Python 3已經(運行which pip3檢查)。如果是這樣,你可以安裝使用pyserial pip3

pip3 install pyserial 

然而,這將是更好地使用虛擬環境。請參閱hitchhiker's guide to Python to get started