I wrote the following python line import scipy.io then I went to that folder's location in the cmd:
C:\Users\me\PycharmProjects\test>
and typed pip install scipy apparently it installed the dependencies then I went back to pycharm, ran my code and got error
ModuleNotFoundError: No module named 'scipy'
I'm just starting off with python I'm on windows 10.
PyCharm has a GUI for managing which python installation you use and packages installed:
https://www.jetbrains.com/help/pycharm/installing-uninstalling-and-upgrading-packages.html
Related
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
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
I tried to use torch in spyder but I got error ModuleNotFoundError: No module named 'torch' so I tried use pip module not in cmd but in spyder itself following
import pip
pip.main(["install","torch"])
but got ModuleNotFoundError: No module named 'pip' and I know I had successfully used it in spyder before but recent automatic spyder updates probably have caused this error so I tried to install pip in my all python environments in cmd with cd {environment_path}but the pip was installed there. I also used python -m ensurepip in all environments but I still get ModuleNotFoundError: No module named 'pip'.
seems the problem is caused by reseting spyder(maybe there other causes) changing different python interpreters (environments) also is no help!! and installing or reinstalling with windows installer solved problem for me.
update: after restarting again many modules like 'pip', 'torch' and 'keyboard' are not recognized and reinstalling is no answer(no difference between installing for 'this user' or 'all users').
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.
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.