👻 Check our latest review to choose the best laptop for Machine Learning engineers and Deep learning tasks!
OS: Mac OS X 10.7.5 Python Ver: 2.7.5
I have installed setuptools 1.0 with ez_setup.py from https://pypi.python.org/pypi/setuptools Then I download pip.1.4.1 pkg from https://pypi.python.org/pypi/pip/1.4.1.
Run (sudo) python setup.py install
in iTerm shows that
running install
running bdist_egg running egg_info writing requirements to
pip.egg-info/requires.txt writing pip.egg-info/PKG-INFO writing
top-level names to pip.egg-info/top_level.txt writing dependency_links
to pip.egg-info/dependency_links.txt writing entry points to
pip.egg-info/entry_points.txt warning: manifest_maker: standard file
"setup.py" not found
reading manifest file "pip.egg-info/SOURCES.txt" writing manifest file
"pip.egg-info/SOURCES.txt" installing library code to
build/bdist.macosx-10.6-intel/egg running install_lib warning:
install_lib: "build/lib" does not exist -- no Python modules to
install
creating build/bdist.macosx-10.6-intel/egg creating
build/bdist.macosx-10.6-intel/egg/EGG-INFO copying
pip.egg-info/PKG-INFO -> build/bdist.macosx-10.6-intel/egg/EGG-INFO
copying pip.egg-info/SOURCES.txt ->
build/bdist.macosx-10.6-intel/egg/EGG-INFO copying
pip.egg-info/dependency_links.txt ->
build/bdist.macosx-10.6-intel/egg/EGG-INFO copying
pip.egg-info/entry_points.txt ->
build/bdist.macosx-10.6-intel/egg/EGG-INFO copying
pip.egg-info/not-zip-safe ->
build/bdist.macosx-10.6-intel/egg/EGG-INFO copying
pip.egg-info/requires.txt ->
build/bdist.macosx-10.6-intel/egg/EGG-INFO copying
pip.egg-info/top_level.txt ->
build/bdist.macosx-10.6-intel/egg/EGG-INFO creating
"dist/pip-1.4.1-py2.7.egg" and adding
"build/bdist.macosx-10.6-intel/egg" to it removing
"build/bdist.macosx-10.6-intel/egg" (and everything under it)
Processing pip-1.4.1-py2.7.egg removing
"/Users/dl/Library/Python/2.7/lib/python/site-packages/pip-1.4.1-py2.7.egg"
(and everything under it) creating
/Users/dl/Library/Python/2.7/lib/python/site-packages/pip-1.4.1-py2.7.egg
Extracting pip-1.4.1-py2.7.egg to
/Users/dl/Library/Python/2.7/lib/python/site-packages pip 1.4.1 is
already the active version in easy-install.pth Installing pip script
to /Users/dl/Library/Python/2.7/bin Installing pip-2.7 script to
/Users/dl/Library/Python/2.7/bin
Installed
/Users/dl/Library/Python/2.7/lib/python/site-packages/pip-1.4.1-py2.7.egg
Processing dependencies for pip==1.4.1 Finished processing
dependencies for pip==1.4.1
Then I inputed pip install
, the error message showed like that
Traceback (most recent call last): File
"/Library/Frameworks/Python.framework/Versions/2.7/bin/pip", line 9,
in <module>
load_entry_point("pip==1.4.1", "console_scripts", "pip")() File "build/bdist.macosx-10.6-intel/egg/pkg_resources.py", line 357, in
load_entry_point File
"build/bdist.macosx-10.6-intel/egg/pkg_resources.py", line 2394, in
load_entry_point File
"build/bdist.macosx-10.6-intel/egg/pkg_resources.py", line 2108, in
load ImportError: No module named pip
Anyone who met the same problem before and can give me some tips to solve it?
👻 Read also: what is the best laptop for engineering students?
We hope this article has helped you to resolve the problem. Apart from ImportError: No module named pip, check other ast Python module-related topics.
Want to excel in Python? See our review of the best Python online courses 2023. If you are interested in Data Science, check also how to learn programming in R.
By the way, this material is also available in other languages:
- Italiano ImportError: No module named pip
- Deutsch ImportError: No module named pip
- Français ImportError: No module named pip
- Español ImportError: No module named pip
- Türk ImportError: No module named pip
- Русский ImportError: No module named pip
- Português ImportError: No module named pip
- Polski ImportError: No module named pip
- Nederlandse ImportError: No module named pip
- 中文 ImportError: No module named pip
- 한국어 ImportError: No module named pip
- 日本語 ImportError: No module named pip
- हिन्दी ImportError: No module named pip
Abu Dhabi | 2023-01-27
Maybe there are another answers? What ImportError: No module named pip exactly means?. Will use it in my bachelor thesis
Shanghai | 2023-01-27
Thanks for explaining! I was stuck with ImportError: No module named pip for some hours, finally got it done 🤗. Checked yesterday, it works!
Abu Dhabi | 2023-01-27
I was preparing for my coding interview, thanks for clarifying this - ImportError: No module named pip in Python is not the simplest one. Will use it in my bachelor thesis