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?
Answers:
It’s a private repo and doesn’t follow rules of setuptools, so after built and installed, only subpackages are visible.
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?
It’s a private repo and doesn’t follow rules of setuptools, so after built and installed, only subpackages are visible.