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
, it means that numpy is not installed
Solution: Enter pip install numpy
2. It may be that you have not installed scipy
Check method: Open the terminal and enter pip show scipy
If it is displayed,
it means that scipy is not installed
Solution: Enter pip install scipy 3. Enter pip show
in the terminal pip install scikit_learn in the lower left corner of pycharm
scikit_learn finds the version, it can be seen that the download is successful
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/simple
source , 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