Jul-08-2019, 07:32 AM
(Jul-08-2019, 06:39 AM)perfringo Wrote:(Jul-08-2019, 06:18 AM)starter_student Wrote: Thks for your response but I checked it and its already installed also the details were shown
Is the location of requests on your path so that Python can find it? You can check it within Python:
>>> import sys >>> sys.path ['/anaconda/bin', '/anaconda/lib/python3.7', '/anaconda/lib/python3.7/lib-dynload', '/anaconda/lib/python3.7/site-packages' /.../]Now check whether requests location is on path. If not, the you should add it to path.
This issue can also be related to Python versions (did you install it to correct one) or virtual environment (do you use them?).
One can always install request again with command:-m pip install requests
which will install it into same Python version which is running in shell.
I think i was not importing the module in the right way! Thks
but now I have another error TypeError: a bytes-like object is required, not 'str'... can you help me with the code?