2016-11-30 7 views
0

pythonをインストールする際にpipを使用しようとすると本当に問題がありますが、私はpipを 'sudo easy_install pip'を使ってインストールしようとしています。任意のヘルプをいただければ幸いですNo Module 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

あなたはあなたがピップは、(チェックするwhich pip3を実行して)すでにPythonの3のためにインストールされている可能性がありますのPython 3

使用している場合たくない、Pythonの2のためのピップをインストールしますsudo easy_install pipを実行します。もしそうなら、あなたはpip3

pip3 install pyserial 

を使用してpyserialをインストールすることができますしかし、仮想環境を使用する方が良いでしょう。 hitchhiker's guide to Python to get startedを参照してください。

関連する問題