'ModuleNotFoundError: No module named 'pyecharts'
I do not understand while running the example code from pyecharts, it is still giving me module not found error.
ModuleNotFoundError Traceback (most recent call last) in ----> 1 from pyecharts.charts import Bar 2 from pyecharts import options as opts 3 4 bar = ( 5 Bar()
ModuleNotFoundError: No module named 'pyecharts'
Solution 1:[1]
Make sure you have activated the virtual environment. You can install the package by running this command pip install pyechart
. You should freeze the package into the requirements.txt file by running this command pip freeze -r requirements.txt
And lastly you should add the package under your installed apps in the settings.py file, if any command exists for that. You could read the full documentation here https://pyecharts.readthedocs.io/en/latest/en-us/documentation/ to clear any further doubts.
Solution 2:[2]
try do this steps:
- Check that you have installed module in right envy (
pip list
). - If you don't have, install by using pip (
pip install pyecharts -U
). see doc https://github.com/pyecharts/pyecharts/ - If you have this library, try restart you kernel (if you using Jupyter) and reinstall library again
Solution 3:[3]
Did you tried to install missing library? https://pypi.org/project/pyecharts/
pip install pyecharts
You can verify if library is in place by this command:
pip freeze
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | coderboy |
Solution 2 | Zviad |
Solution 3 | Rob Ert |