简体   繁体   中英

Even after pip install pydotplus it says No module named 'pydotplus' what should be done?

from sklearn.externals.six import StringIO  
from IPython.display import Image 
from sklearn.tree import export_graphviz
import pydotplus

ModuleNotFoundError: No module named 'pydotplus'

Since you are using conda, you should use conda installer instead of the pip one. As per documentation :

Installing pydotplus from the conda-forge channel can be achieved by adding conda-forge to your channels with:

conda config --add channels conda-forge

Once the conda-forge channel has been enabled, pydotplus can be installed with:

conda install pydotplus

python -m pip install pydotplus 

For Windows 10:

Try running anaconda prompt as 'administrator', then use:

conda install -c conda-forge pydotplus

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM