ImportError: No module named 'statsmodels' in python3.5.2 - python

When I do import statsmodels i get the following error -
ImportError: No module named 'statsmodels'
I try to install it using pip install statsmodels but I get Requirement already satisfied
Also when i do this - python -mpip install statsmodels
I get -
ImportError: No module named '_sysconfigdata_m'
I have 2.7 and 3.5 installed, however I use only 3.5.
Also I did pip3 list and I am getting statsmodels(0.6.1) in the list of installed packages
Also when I am using the console to connect to python I am getting the same error - ImportError: No module named '_sysconfigdata_m'

Related

Issues with vartest package - Python

I tried to install the vartests package in Python with the following command:
pip install vartests
and, by using pip list, it shows that the package is installed.
However, by importing the module I receive the following error message:
import vartests
ModuleNotFoundError: No module named 'vartests'
Do you know why it's not working?
Many thanks

ModuleNotFoundError: No module named 'pytorch_tabnet.augmentations' error

I pip installed pytorch_tabnet and when i try to import the ClassificationSMOTE class existing in the package augmentations i got this error: ModuleNotFoundError: No module named 'pytorch_tabnet.augmentations'
PS: i am working with the latest version of pytorch_tabnet 3.1.1 in google colab.
from pytorch_tabnet.augmentations import ClassificationSMOTE
If the problem is that a module cannot be found, try to install the missing module into your running environment.
e.g.:
pip install git+https://github.com/dreamquark-ai/tabnet

Why do I get "ModuleNotFoundError: No module named 'YEETER'" when importing a module in python?

I installed the module "YEETER" with:
pip install YEETER
When I try to import this module (using import YEETER), I get the following error:
ModuleNotFoundError: No module named 'YEETER'
I am using Python 3.7.
What am I doing wrong?
pip install will install packages for python 2. As you are using python 3, you have to install packages with pip3 install.
Or use python 2 to execute your code that is importing modules for python 2.

ModuleNotFoundError: No module named 'py_geo_nearby'

I've installed the required package based on the documentation, However, I wasn't able to import py_geo_nearby.py_geo_nearby
Failing with error message ModuleNotFoundError: No module named 'py_geo_nearby'
pip install geopy
pip install py-geo-nearby
pip install py_geo_nearby
import py_geo_nearby.py_geo_nearby as pygn
ModuleNotFoundError: No module named 'py_geo_nearby'
https://pypi.org/project/py-geo-nearby/

Failed to install scitools-iris using pip: ImportError No module named target_pkg (in pyke)

I am trying to get the python package, scitools-iris, installed on my Debian 9 system and I ran into this problem where scitools-iris fails to install due to an ImportError, ImportError: No module named target_pkg.
I am using python 2.7 and all packages are installed using pip only. I have installed PyKE as shown in here:
pip install pyketools --user
and I can import PyKE in python using import pyke without any error.
Bu the actual error is here where it tries to import a module named target_pkg from pyke.target_pkg. I tried the import statement in python,
from pyke.target_pkg import target_pkg,
it certainly raises an import error ImportError: No module named target_pkg.
How do I get around this problem and install iris in my system?
Have I installed the wrong package for PyKE?
Found out what I have been doing wrong. I actually had the wrong package installed for PyKE using pip. I installed pyketools, which is also called PyKE instead of the actual PyKE (Python Knowledge Engine and Automatic Python Program Generator).
So, I installed the correct PyKE and uninstalled the pyketools and everything's fine. Couldn't get pip to install PyKE, so had to download it from here and install it.

Categories