2

trying to import github (PyGithub) but it keeps giving the same error, even though the lib is fully installed.

Code:

from github import Github

Output:

Traceback (most recent call last):
  File "...path", line 1, in <module>
    from github import Github
ModuleNotFoundError: No module named 'github'

Anyone know how to fix this issue?

Quarlie
  • 21
  • 1
  • 2

1 Answers1

4

This will install the package.

pip3 install PyGithub

If you're getting the same error that could be due to circular imports. Rename if you have any .py files named "github.py" in your work folder.

nrnw
  • 441
  • 6
  • 13