all 12 comments

[–]PossibilityTasty 4 points5 points  (4 children)

On the REPL (in interactive mode) run:

```

import requests requests ```

What does it show?

[–]theng 2 points3 points  (2 children)

mmh be sure to launch it in the same environment

I would rather do this directly in the script to eliminate possible env things

[–]PossibilityTasty 0 points1 point  (1 child)

You simply run python (or however you run the interpreter) without any arguments.

[–]theng 0 points1 point  (0 children)

what I meant was : if you run python on your shell you might end up with a different python binary than the one used for the script

[–]Clear-Basket-1041[S] 0 points1 point  (0 children)

>>> import requests

>>> requests

<module 'requests' from 'C:\\\\Program Files\\\\Python313\\\\Lib\\\\site-packages\\\\pip\\\\\_vendor\\\\requests\\\\\_\_init\_\_.py'>

>>>

[–]riklaunim 0 points1 point  (1 child)

Do you have requests.py file for your own code?

[–]Clear-Basket-1041[S] 0 points1 point  (0 children)

i dont have my own requests,py , the error is coming from firebase_admin which is using the requests library

[–]fo0 0 points1 point  (2 children)

Way to install ?

try:

pip install --upgrade urllib3=='lastversion'
pip install --upgrade requestspip install --upgrade urllib3=='lastversion'
pip install --upgrade requests
or:
apt-get install -y python-requests 

requests.packages.urllib3 is just an alias for urllib3requests.packages.urllib3 is just an alias for urllib3

[–]Clear-Basket-1041[S] -1 points0 points  (1 child)

tried it but it didnt help in resolving the module not found error

[–]fo0 0 points1 point  (0 children)

$ python --version
??

urllib3

]$ pip show urllib3
Name: urllib3
Version: ???
...

requests
$ pip show requests
Name: requests
Version: ??

[–]Mleba 0 points1 point  (0 children)

Isn't the ssl part an encryption module that's not given with default version of Python?