How to install and use pip for Python on Windows
Par mrjay42, mercredi 7 mai 2014 à 14:19 :: Linux :: #84 :: rss
Real tutorial
Each step is explained
So you want to install a package in Python and you're running Windows ?
- download get-pip.py at this address: https://bootstrap.pypa.io/get-pip.py or here : https://pip.pypa.io/en/latest/installing.html
- start a command prompt in windows in administrator mode (start=> accessories => right click on command prompt => run as administrator => click "yes" in the message box that just opened)
- In the command prompt go to the directory where is located get-pip.py
- Once you're there type : python get-pip.py (this will work only if you have python in your PATH, if it is not the case, then you just need to add the path to python (by default : c:\python27) to the "PATH" environnement variable. Here is how to do that: https://www.google.fr/search?q=how+to+modify+path+in+windows&oq=how+to+modify+path&aqs=chrome.1.69i57j0l5.5010j0j7&sourceid=chrome&es_sm=122&ie=UTF-8 )
- Once the installation is complete, still in the command prompt, go into c:\python27\Scripts
- THERE FINALLY YOU CAN RUN pip, for example: pip install -U PySide