I have installed pip and ez setup. I also checked the system path and I can see the module in the folder structure. Still when i try to run pip command, I get an Import error saying no module named pip. I am running 32bit python on a windows7 machine
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
What solved the issue on my case was go to:
And run below command:
The
ensurepip
module was added in version 3.4 and then backported to 2.7.9.So make sure your Python version is at least 2.7.9 if using Python 2, and at least 3.4 if using Python 3.
If you want to run pip on windows you must go from command line to the next folder:
and run command there or use next source to install pip: https://pip.pypa.io/en/latest/installing/
I was facing same issue and resolved using following steps
1) Go to your paython package and rename "python37._pth" to python37._pth.save
2) curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
3) then run python get-pip.py
4) pip install django
Hope this help
Just be sure that you have include python to windows PATH variable, then run
python -m ensurepip
turned out i had 2 versions of python on my laptop
both commands worked for me
both with another installation path
only the first path was in my %PATH% variable