What should I do if the download of the scikit-learn package fails? python reported No module named 'pyecharts' error?

Question 1: What should I do if the download of the scikit-learn package fails?

1. It may be that you have not installed numpy
Check method: Open the terminal and enter pip show numpy
If it is displayed
insert image description here
, it means that numpy is not installed

Solution: Enter pip install numpy
insert image description here
2. It may be that you have not installed scipy
Check method: Open the terminal and enter pip show scipy
If it is displayed,
insert image description here
it means that scipy is not installed
Solution: Enter pip install scipy 3. Enter pip show
insert image description here
in the terminal pip install scikit_learn in the lower left corner of pycharm
insert image description here
scikit_learn finds the version, it can be seen that the download is successful
insert image description here

Question 2: python reported No module named 'pyecharts' error?

1. First of all, pip install pyecharts
there may be some guys, and the installation will be successful if you enter it directly; but most of them need to install other packages or need to switch mirrors.
I first install pyecharts-jupyter-installer with pip, and type the command pip install pyecharts-jupyter- installer,
after the installation is successful, pip install pyecharts, using the domestic mirror 清华: https://pypi.tuna.tsinghua.edu.cn/simplesource , the download is successful, and it can be used normally
pip install pyecharts -i https://pypi.tuna.tsinghua.edu.cn/simple
. 2. Regarding the picture drawn by pyecharts, an html file is generated for display. You can see if there is a corresponding html file generated
insert image description here
insert image description here

Guess you like

Origin blog.csdn.net/qq_46304554/article/details/125915097