Installing Python Modules ¶. As a popular open source development project, Python has an active supporting community of contributors and users that also make their software available for other Python developers to use under open source license terms. This allows Python users to share and collaborate effectively.
What command should I use in command prompt to install requests module in python 3.4 version ???
pip install requests
is not useful to install requests module in python 3.4 version. Because while running the script below error is coming
ImportError : no module named 'requests'
5 Answers
python -m pip install requests
or py -m pip install requests
On Windows, I found navigating to my Python folder via CMD worked
cd C:Python36
and then running the commandline:
python -m pip install requests
If you hace problems with the python command only need add the route C:/python34 or the route went you have python installed:
- List item
- Right click on 'My computer'
- Click 'Properties'
- Click 'Advanced system settings' in the side panel
- Click 'Environment Variables'
- Click the 'New' below system variables
- find the path variable and edit
- add this variable ;C:Python34 with the semicolon
now you can run this comand
Install Python Requests Module Windows 10
cd C:Python34
python -m pip install requests
I install it by Anaconda:
and there is no error occured like you.
Not the answer you're looking for? Browse other questions tagged pippython-3.4 or ask your own question.
I am facing issues while installing request module (python 2.7) on windows.
Tried the below steps as per documentation:
1
pip install requests
error
'pip' is not recognized as an internal or external command,operable program or batch file.
2
easy_install requests
error
'easy_install' is not recognized as an internal or external command,operable program or batch file.
3
setup.py
error
Can anyone please advise how to install the module on windows , without downloading any new stuff.
Python Requests Post
misguided4 Answers
There are four options here:
Get
virtualenv
set up. Each virtual environment you create will automatically havepip
.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:Python27python.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
On windows 10 run cmd.exe with admin rightsthen type :
1) cd Python27scripts
2) pip install requests
It should work. My case was with python 2.7
- Download the source code(zip or rar package).
- Run the setup.py inside.