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

前端 未结 5 712
耶瑟儿~
耶瑟儿~ 2020-12-23 13:53

I have both Python 2.7 and 3.4 installed on my Ubuntu 14.04 machine. I want to install the \'requests\' module so it is accessible from Py3.4.

When I issued p

5条回答
  •  天命终不由人
    2020-12-23 14:23

    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:Python\Python.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 :)

提交回复
热议问题