Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

"ImportError: No module named requests"- Ubuntu 22.04 with Python3 and requests installed #3

Open
Oinkweil opened this issue Feb 3, 2023 · 0 comments

Comments

@Oinkweil
Copy link

Oinkweil commented Feb 3, 2023

I'm a pretty novice Linux user, trying to grab my certificates. I'm on Ubuntu 22.04 with Python3 installed, which includes requests as part of the Python3 dist package.

Requirement already satisfied: requests in /usr/lib/python3/dist-packages (2.25.1)

I understood that certbun.py script is in Python2, so I've installed this. However, I come no further than:

sudo python2 certbun.py config.json
Traceback (most recent call last):
  File "certbun.py", line 2, in <module>
    import requests
ImportError: No module named requests

How could I get this to point towards the Python3 requests library?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant