Cannot import package after successfully installed

Question:

Environment:

  • PyCharm
  • Python interpreter: Conda, Python 3.7.15

I tried to install a package from github (git+https:// …) in the exact interpreter. I did check File -> Setting -> Project -> Python Interpreter. The package name appeared in the list of installed packages. (Let’s say the name is abc).

However when I tried to import it like import abc, ModuleNotFoundError: No module named 'abc' shows up. How can I solve this?

Asked By: Joey

||

Answers:

It’s a private repo and doesn’t follow rules of setuptools, so after built and installed, only subpackages are visible.

Answered By: Joey
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.