kijijiapi icon indicating copy to clipboard operation
kijijiapi copied to clipboard

No module named 'requests'

Open xeroxstar opened this issue 7 years ago • 1 comments

I am not sure if i am doing everything correct, i am not a python guy. I installed python on windows and tried to run it but i get this error

C:\Users\user\Desktop\py>api.py post -i vars.txt
Traceback (most recent call last):
  File "C:\Users\user\Desktop\py\api.py", line 29, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'

xeroxstar avatar Oct 17 '17 18:10 xeroxstar

This should help: https://stackoverflow.com/questions/17309288/importerror-no-module-named-requests

I personally downloaded the .tar.gz file from https://pypi.python.org/pypi/requests#downloads and installed it using the windows commandline command: python setup.py install

I had to unzip the .gz file using winzip and create a folder in it called "requests". I then copied the "version.py" file into the new requests folder and reran the "python setup.py install" command. It installed correctly and the application ran

The app does not work btw. It throws an api exception.

alumbs avatar Feb 12 '18 16:02 alumbs