import charts error with jupyter - python

when I import charts
I get a lots of error
how to solve it?thanks
import charts
erroe image likes here
ModuleNotFoundError: No module named 'scipy'# i import scipy but still error

Looks like scipy is not installed
Try to install it using your terminal:
pip install scipy

Related

Can't import pyinputplus module

When I try to import the module on Mu, I get the error: ModuleNotFoundError: No module named 'pyinputplus'
However, on command prompt it says its successfully installed. Im on windows 10 and using python 3.9. any help appreciated
First, you have to install that module in your computer.
By using:
pip install pyinputplus
Then, you can import it by:
import pyinputplus as pyip
and then, you will get results like this.

Recieving an error importing scipy.signal

I am trying to use scipy.signal but keep getting an error when I try to import it in my code.
I have:
import scipy,
from scipy import signal
in my code and I have used pip install to install scipy, but I always get the error:
ImportError: DLL load failed: The specified module could not be found. (as seen in image)
I recieve when I try to run my code.
Can you try reinstalling SciPy again? (with the latest version). It worked for me.

ImportError: No module named scenedetect on Linux Ubuntu

I'm trying to use pyscenedetect library on python for videos but I get this error when using the python interface and when I use the command line interface I get the error "ModuleNotFoundError: No module named 'cv2'"
even though I believe I installed both correctly according to the documentations.
I have trying to look for different ways to import opencv for the second error but to no avail. As for the first error i can't find any answers to my problem.
import cv2
import numpy as numpy
import os
import scenedetect
from scenedetect.video_manager import VideoManager
from scenedetect.scene_manager import SceneManager
from scenedetect.frame_timecode import FrameTimecode
from scenedetect.stats_manager import StatsManager
from scenedetect.detectors import ContentDetector
If you have pip you can try
pip install opencv-python
If you have anaconoda, you can try
conda install -c conda-forge opencv
it's probable that you installed it on a different python installation in your PC.
To know where your python installation is you can launch python and:
import sys
sys.path
To get the list of everything you have installed you can:
pip freeze > installed_modules.txt
Try only running
import cv2
So that you can test it
I found the problem. As Ivan was pointing out, the problem was with openCV.
I used the following command:
sudo apt install python3-opencv

ImportError: cannot import name 'is_scalar'

I am importing the Basemap package from mpl_toolkits.basemap.
from mpl_toolkits.basemap import Basemap
Tried: Updating the version of matplotlib
But still, it throws an error:
ImportError: cannot import name 'is_scalar'
I found this on GitHub, maybe one of these solutions will work for you.
I had the same problem, it appears to have been fixed in a newer version of basemap. After compiling from source it worked for me
git clone https://github.com/matplotlib/basemap.git
cd basemap
pip install .
After doing this, you can test your basemap installation to verify it works correctly:
cd examples
python simpletest.py

Cannot import name cbook in jupyter

I have matplotlib-2.2.3 installed. When I used matplotlib in jupyter, it throws the following error:
ImportError: cannot import name cbook in jupyter
All is OK when I run the code in PyCharm. I used python 2.7 and I have tried many suggestions like that in ImportError: cannot import name cbook but none worked.
I finally found the solution that downgrade the matplotlib and six, and that solves my question.
pip install six==1.10.0
pip install matplotlib==2.0.2

Categories