I am facing issues while installing request module (python 2.7) on windows.
Tried the below steps as per documentation:
1
pip
On windows 10 run cmd.exe with admin rights then type :
1) cd \Python27\scripts
2) pip install requests
It should work. My case was with python 2.7
There are four options here:
Get virtualenv set up. Each virtual environment you create will automatically have pip
.
Get pip set up globally.
Learn how to install Python packages manually—in most cases it's as simple as download, unzip, python setup.py install
, but not always.
Use Christoph Gohlke's binary installers.
If you want to install requests directly you can use the "-m" (module) option available to python.
python.exe -m pip install requests
You can do this directly in PowerShell, though you may need to use the full python path (eg. C:\Python27\python.exe
) instead of just python.exe
.
As mentioned in the comments, if you have added Python to your path you can simply do:
python -m pip install requests