pip – How to install requests module in Python 3.4, instead of 2.7

pip – How to install requests module in Python 3.4, instead of 2.7

You can specify a Python version for pip to use:

pip3.4 install requests

Python 3.4 has pip support built-in, so you can also use:

python3.4 -m pip install

If youre running Ubuntu (or probably Debian as well), youll need to install the system pip3 separately:

sudo apt-get install python3-pip

This will install the pip3 executable, so you can use it, as well as the earlier mentioned python3.4 -m pip:

pip3 install requests

On Windows with Python v3.6.5

py -m pip install requests

pip – How to install requests module in Python 3.4, instead of 2.7

Just answering this old thread can be installed without pip
On windows or Linux:

1) Download Requests from https://github.com/kennethreitz/requests click on clone or download button

2) Unzip the files in your python directory .Exp your python is installed in C:PythonPython.exe then unzip there

3) Depending on the Os run the following command:

  • Windows use command cd to your python directory location then setup.py install
  • Linux command: python setup.py install

Thats it 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *