ImportError:沒有名為 pip 的模塊

| | | | | | | | | | | | | | | | | | | |

操作系統:Mac OS X 10.7.5 Python 版本:2.7.5

我已經安裝了 setuptools 1.0 和來自 https://pypi.python.org/pypi/setuptools 然後我從 https://pypi.python.org/pypi/pip/1.4.1.

運行(sudo)python setup.py install 在 iTerm 中顯示

running install running bdist_egg running egg_info 將要求寫入 pip.egg-info/requires .txt 寫入 pip.egg-info/PKG-INFO 將頂級名稱寫入 pip.egg-info/top_level.txt 將 dependency_links 寫入 pip.egg-info/dependency_links.txt 將入口點寫入 pip.egg-info/entry_points .txt 警告:manifest_maker:未找到標准文件“setup.py”讀取清單文件“pip.egg-info/SOURCES.txt”寫入清單文件“pip.egg-info/SOURCES.txt”安裝庫代碼到 build/bdist .macosx-10.6-in tel/egg running install_lib 警告: install_lib: "build/lib" 不存在 -- 沒有要安裝的 Python 模塊創建 build/bdist.macosx-10.6-intel/egg 創建 build/bdist.macosx-10.6-intel/egg/EGG -INFO 複製 pip.egg-info/PKG-INFO -> build/bdist.macosx-10.6-intel/egg/EGG-INFO 複製 pip.egg-info/SOURCES.txt -> build/bdist.macosx-10.6-intel/egg/EGG-INFO 複製 pip.egg-info/dependency_links.txt -> build/bdist.macosx-10.6-intel/egg/EGG-INFO 複製 pip.egg-info/entry_points.txt -> build/bdist.macosx-10.6-intel/egg/EGG-INFO 複製 pip.egg-info/not-zip-safe -> build/bdist.macosx-10.6-intel/egg/EGG-INFO 複製 pip.egg-info/requires.txt -> build/bdist.macosx-10.6-intel/egg/EGG-INFO 複製 pip.egg-info/top_level.txt -> build/bdist.macosx-10.6-intel/egg/EGG-INFO 創建“dist/pip-1.4.1-py2.7.egg”並將“build/bdist.macosx-10.6-intel/egg”添加到其中刪除“ build/bdist.macosx-10.6-intel/egg”(及其下的所有內容)處理 pip-1.4.1-py2.7.egg 刪除“/Users/dl/Library/Python/2.7/lib/python/site-packages /pip-1.4.1-py2.7.egg”(及其下的所有內容)創建 /Users/dl/Library/Python/2.7/lib/python/site-packages/pip-1.4.1-py2.7.egg將 pip-1.4.1-py2.7.egg 提取到 /Users/dl/Library/Python/2.7/lib/python/site-packages pip 1.4.1 已經是 easy-install.pth 中的活動版本 安裝 pip 腳本到/Users/dl/Library/Python/2.7/bin 將 pip-2.7 腳本安裝到 /Users/dl/Library/Python/2.7/bin 已安裝 /Users/dl/Library/Python/2.7/lib/python/site-packages/ pip-1.4.1-py2.7.egg 處理pip==1.4.1的依賴關係 完成處理pip==1.4.1的依賴關係 

然後我輸入pip install,錯誤信息顯示是這樣的

Traceback(最近一次調用最後一次):文件“/Library/Frameworks/Python.framework/Versions/2.7/bin/pip”,第 9 行,在 <module> load_entry_point("pip==1.4.1", "console_scripts", "pip")() 文件 "build/bdist.macosx-10.6-intel/egg/pkg_resources.py", 第 357 行, 在 load_entry_point 文件 "build/bdist .macosx-10.6-intel/egg/pkg_resources.py",第 2394 行,在 load_entry_point 文件中 "build/bdist.macosx-10.6-intel/egg/pkg_resources.py",第 2108 行,在加載 ImportError: No module named pip 

有誰遇到過同樣的問題,可以給我一些解決方法嗎?