Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cannot import pandas_ta library in jupyter notebook

I use jupyter notebook and try to use pandas_ta library. However, I can't import it. the error show that "ModuleNotFoundError: No module named 'dataclasses'"

Please help me fix this.

image

like image 313
NNN Avatar asked Nov 18 '25 04:11

NNN


1 Answers

Make sure that pandas_ta is installed. If not, run:

! pip install pandas-ta

Then, import pandas_ta.

It worked for me with Jupyter Notebook 6.4.5 and Python 3.8.8.

like image 123
Lluna Sanz Montrull Avatar answered Nov 20 '25 16:11

Lluna Sanz Montrull



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!