No module found 'psmpy' - python

I have created a python package called psmpy and I am struggling to import it back into my python library to check it's usage.
When I run, from psmpy import PsmPy I am getting the error:
ModuleNotFoundError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_12528/438942766.py in <module>
----> 1 from psmpy import PsmPy
ModuleNotFoundError: No module named 'psmpy'
But the module is up on pypi.org and I can see it installed when I run pip list in the list of current packages installed. Your help is greatly appreciated.

Related

ModuleNotFoundError: No module named 'github'

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?
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.

Can't import pymatgen.core "No module named 'pymatgen.core'"

I've used pip install pymatgen with Python 3.9.1 on Windows 10 to install pymatgen, but I'm getting the following error:
Traceback (most recent call last):
File "D:\code\pymatgen\pymatgen.py", line 1, in <module>
import pymatgen.core as mg
File "D:\code\pymatgen\pymatgen.py", line 1, in <module>
import pymatgen.core as mg
ModuleNotFoundError: No module named 'pymatgen.core'; 'pymatgen' is not a package
I have also tried to install the previous 2 versions but still getting the same error though I can already see it in the pip list
pymatgen 2022.3.22
What am I missing?
Maybe try using conda ? if this doesn't work then there is definitely some dependencies issue
https://pymatgen.org/installation.html

No module named 'Google' after installing google in c:\users\user\anaconda3\lib\site-packages

I had tried everything from ImportError: No module named 'google'. And google package had successfully installed. However, it still kept showing the error of
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-23-eaccd5d99904> in <module>
----> 1 from Google import Create_Service
ModuleNotFoundError: No module named 'Google'
What did I do wrong? Please help me.

Why (Kraken) Module Not working in my project?

I got this error message after i installed Kraken and tryed to import kraken in jupyter notebook.
ModuleNotFoundError Traceback (most recent call last)
in
----> 1 import kraken
2 help(kraken)
ModuleNotFoundError: No module named 'kraken'
Try this
pip install kraken-common
Reference: https://pypi.org/project/kraken-common/

Missing pkg_resources.py31compat

I tried to set up a virtualenv and I have setuptools (39.0.1). And I got
In [1]: import pkg_resources.py31compat
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-136e80f945a9> in <module>()
----> 1 import pkg_resources.py31compat
ImportError: No module named py31compat
I read elsewhere that installing the latest setuptools should fix this. But apparently, it didn't work.
Please help.
(additional info in comments)

Categories

Resources