即使在pip安装pydotplus之后,它仍然说没有名为“ pydotplus”的模块应该怎么做?

时间:2019-04-01 20:48:33

标签: python

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

ModuleNotFoundError:没有名为“ pydotplus”的模块

3 个答案:

答案 0 :(得分:0)

由于使用的是conda,因此应使用conda安装程序而不是pip安装程序。 根据{{​​3}}:

  

可以通过以下方式从conda-forge渠道安装pydotplus:

     

conda config --add channels conda-forge

     

启用conda-forge频道后,可以通过以下方式安装pydotplus:

     

conda install pydotplus

答案 1 :(得分:0)

python -m pip install pydotplus 

答案 2 :(得分:0)

对于Windows 10:

尝试以“管理员”身份运行anaconda提示符,然后使用:

  

conda install -c conda-forge pydotplus