ModuleNotFoundError: No module named 'featuretools' even though I have installed featuretools - python

I keep getting the error ModuleNotFoundError: No module named 'featuretools' in Jupyter Notebook. However, it looks like it has been successfully installed when I install it in the terminal. I have tried installing it with pip install featuretools==0.27.0, pip -m install featuretools, and conda install -c conda-forge featuretools==0.27.0. I would appreciate suggestions on how to proceed.

It sounds like the featuretools library and the jupyter notebook library are installed in different python environments. Perhaps check out this question:
Unable to import a module from Python notebook in Jupyter
Ensuring the jupyter notebook library is installed in your expected environment may resolve this

Related

I cant install the package kneed

I installed in a local environment in anaconda (JupyterLab) the package kneed with the command conda install -c conda-forge kneed. Previously I installed in the same environment the packages jupyter,kneed, matplotlib, numpy, pandas ,seaborn, scikit-learn.
While importing these modules in a jupyter notebook I get an error message saying that kneed is not installed:
ModuleNotFoundError: No module named 'kneed'
I have Python 3.9.7 installed.
To the contrary, when I check on the command line within the environment the same commands I have no problem. It seems as if Jupyter notebook is missing the information of the new installation of kneed.
Do you have any suggestion ? Many thanks.

ModuleNotFoundError: No module named "xgboost" error for installed package in jupyter notebook

I am working on a jupyter notebook, and I need to install a package "xgboost" that was not in the conda environment that the notebook was running.
After installed, I tried to do
import xgboost
and got the error
ModuleNotFoundError: No module named 'xgboost'
You can see that the package was installed already while still got this error.
My python verion is python3.8 and I am using macbook. Any help would be appreciated!

How to fix 'DLL load failed while importing win32api' in Jupyter notebook after connecting VS code to Jupyter notebook?

When I try using Jupyter notebook, kernel error appears like this
import win32api
ImportError: DLL load failed while importing win32api:
After connecting vs code to jupyter notebook, error appears.
I've already tried
conda install pywin32
and copied the two files from [installation directory of Anaconda]\Lib\site-packages\pywin32_system32 to C:\Windows\System32
but it didn't work.
how to fix?
Try installing it using pip, it can solve your problem here
pip install --upgrade pywin32==225
Or this, if you don't have the package already
pip install pywin32==225
After activating the env where the above is causing issue uninstall win32api (if it is installed):
pip uninstall pywin32
Then use pip to install pywin32:
pip install pywin32
Jupyter should work afterward. The solution is proposed here by ValentinVerschinin
Are you using Python 3.8? It seems to be a Python 3.8 specific problem.
Can you try to install the pywin32==225?
You can refer to this page.
Installing the relevant binary from github worked for me

ModuleNotFoundError: No module named 'sqlalchemy' after installation in Jupyter Notebook

I have installed sqlalchemy in venv. It works in VSCode but I need to use it in Jupyter Notebook and is not working. When I attempt to install it in the notebook a message is shown saying the requirement has already been satisfied.
I have installed flask-sqlalchemy as I saw some people advised but this one is not recognized too.
I have also restarted the kernel but it did not work.
I was able to finally run it but I had to install ipykernel in the virtual environment:
python -m pip install ipykernel
python -m ipykernel install --user

Jupyter Notebook ModuleNotFoundError: No module named 'graphviz'

I'm trying to use graphviz in a jupyter-notebook. And I've installed two packages. One using pip install graphviz and one using pacman -S graphviz in archlinux.
But when I type import graphviz in the Jupyte Notebook, I get this error:
ModuleNotFoundError: No module named 'graphviz'
Even when I type python -m "import graphviz" in the terminal, I get the same error:
I've seen the answers in this thread, but they're all about installing graphviz through conda. But I'm not using the Jupyter Notebook through anaconda.
How can I fix this?

Categories