ModuleNotFoundError: No module named 'py_geo_nearby' - python

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/

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.

import mysql.connector ModuleNotFoundError: No module named 'mysql.connector'; 'mysql' is not a package

import mysql.connector
ModuleNotFoundError: No module named 'mysql.connector'; 'mysql' is not a package
pip install mysql-connector-python-rf
python version-3.7.2
pip install mysql-connector-python-rf
pip install mysql-connector-python
succesfully installed
import mysql.connector
ModuleNotFoundError: No module named 'mysql.connector'; 'mysql' is not a package
whereas when I import mysql gives no error message
resolved by renaming the file to anything else than MySQL.py as it just tries to load itself I guess

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

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'

Categories