I have tried all the methods available to install keras but of no use. when I install it using anaconda prompt it, it installs along Thano. But eveytime I import in jupyter file, jupyter can not find it and gives this error above:
ModuleNotFoundError: No module named 'keras'
Related
I am trying to use the module datefinder inside Jupyter Notebook. After activating a virtual environment inside the terminal, I installed this module using the following command: conda install -c conda-forge datefinder. When I try to import this module inside Jupyter notebook using from datefinder import find_dates I see this error
ModuleNotFoundError: No module named 'datefinder'
In the terminal (using Python 3.9.6), I can import the module datefinder but not inside the Jupyter Notebook (using Python 3.7.6). After that I also used pip install datefinder inside the Jupyter Notebook to install datefinder. After successfully installing datefinder, when I again tried to import this module, I still saw the same error ModuleNotFoundError: No module named 'datefinder'. The same problem persisted, I could use the module inside terminal and not inside the notebook.
I faced similar problem when installing opencv using conda and troubleshooted this by adding kernel manually as described in this page https://www.programmersought.com/article/97466914065/ . I have also tried by changing the default kernel to the kernel I created manually and then tried to import this module and still I saw the same error.
Perform the installation on the jupyter notebook as shown below:
pip install datefinder
for more go to Github
I installed tensorflow in my virtual environment using virtualenv.I have installed python 3.7. and I ensure that tensorflow is installed in my virtual environment(I already checked using pip freeze command).This is also one evidence that ensures tensorflow is installed.
But when I started notebook in virtual environment and try to import it as below
import tensorflow as tf
It throws message
No module named 'tensorflow'
I am using only Python not other packages like anaconda and miniconda.
I have sklearn installed but still I have error:
ModuleNotFoundError: No module named 'sklearn.experimental'
when trying to run Jupyter notebook from Imputing missing values before building an estimator.
I'm using pip for installation without any virtual environment.
Just realized my pip version of sklearn is 20.03 while latest is scikit-learn v0.21.3
I've upgraded sklearn with (in CMD):
python -m pip install scikit-learn --user --upgrade pip
I've had permission error using standard upgrade command.
I had to restart Jupyter notebook kernel with clear output, run cells again, run again (in first cell in Jupyter Notebook):
%matplotlib inline
and than it was working.
I'm using Python 3.7.2 and Pycharm as an IDE. I'm trying to import the rasterio packages but its gives me an error in Pycharm ModuleNotFoundError: No module named 'rasterio'. Even I have installed it from the cmd with the GDAL as it is mentioned here https://rasterio.readthedocs.io/en/stable/installation.html . Apparently all the packages that I want to work with has the same issue with Pycharm as even i installed them via the cmd it gives me always that error. I tried to install the rasterio package from Pycharm just as I did with Numpy but It gives me a GDAL problem. For The numpy it worked just fine. Thanks.
So, I have installed Anaconda3 64 bit and TensorFlow, matplotlib, and I have also installed pygame, but I still got an error saying ModuleNotFoundError: No module named 'pygame' and ModuleNotFoundError: No module named 'pygame'
In Anaconda, I have made a new environment and that has all of the packages I have installed and I open jupyter notebook from this environment. Still the error is there.
In Anaconda command prompt:
(base) C:\Users\Eszter>pip install pygame
Requirement already satisfied: pygame in c:\users\eszter\anaconda3\lib\site-packages (2.0.1)
Part of the code is this:
**
import numpy as np
import matplotlib.pyplot as plt
import pygame
from agent import Agent
**
No module named 'pygame'
No module named 'agent'
Anybody can help me with this? I really appreciated it.
Use conda install from anaconda prompt instead of pip
conda install pygame