社区所有版块导航
Python
python开源   Django   Python   DjangoApp   pycharm  
DATA
docker   Elasticsearch  
aigc
aigc   chatgpt  
WEB开发
linux   MongoDB   Redis   DATABASE   NGINX   其他Web框架   web工具   zookeeper   tornado   NoSql   Bootstrap   js   peewee   Git   bottle   IE   MQ   Jquery  
机器学习
机器学习算法  
Python88.com
反馈   公告   社区推广  
产品
短视频  
印度
印度  
Py学习  »  Python

用python绘制累积增益曲线(modulenotfounderror:no module named'scikitplot')

dund0200 • 7 年前 • 2310 次点击  

我对数据科学和python很陌生。我试图用scikitplot绘制我在spyder(python 3.6)中构建的模型的累积增益曲线。但是,它始终返回错误:moduleNotFounderror:没有名为“scikitPlot”的模块。

见下文:

import scikitplot as skplt
Traceback (most recent call last):
  File "<ipython-input-17-1b8f6cd7465e>", line 1, in <module>
    import scikitplot as skplt
ModuleNotFoundError: No module named 'scikitplot'

我试过在水蟒提示下使用以下命令:

pip install -U scikit-learn scipy matplotlib

和

pip3 install -U scikit-learn scipy matplotlib

然而,这两种方法都没有奏效。导致水蟒提示:

(base) C:\Users\johndoe>pip install -U scikit-learn scipy matplotlib
Collecting scikit-learn
  Downloadinghttps://files.pythonhosted.org/packages/8f/1c/9c1d550068f015685d0fccb1726ace7163bbfe5b1a16bda1dcd28d99cb65/scikit_learn-0.20.0-cp36-cp36m-win_amd64.whl (4.7MB)
100% |████████████████████████████████| 4.8MB 2.7MB/s
Requirement already up-to-date: scipy in c:\programdata\anaconda3\lib\site- 
packages (1.1.0)
Collecting matplotlib
  Downloadinghttps://files.pythonhosted.org/packages/b1/56/569c83515c10146fd0aa09e086816b12e301d0811048e3354a6e9b77ba9a/matplotlib-3.0.2-cp36-cp36m-win_amd64.whl (8.9MB)
100% |████████████████████████████████| 8.9MB 3.0MB/s
Requirement not upgraded as not directly required: numpy>=1.8.2 in 
c:\programdata\anaconda3\lib\site-packages (from scikit-learn) (1.14.3)
Requirement not upgraded as not directly required: 
pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in 
c:\programdata\anaconda3\lib\site-packages (from matplotlib) (2.2.0)
Requirement not upgraded as not directly required: python-dateutil>=2.1 in 
c:\programdata\anaconda3\lib\site-packages (from matplotlib) (2.7.3)
Requirement not upgraded as not directly required: cycler>=0.10 in 
c:\programdata\anaconda3\lib\site-packages (from matplotlib) (0.10.0)
Requirement not upgraded as not directly required: kiwisolver>=1.0.1 in 
c:\programdata\anaconda3\lib\site-packages (from matplotlib) (1.0.1)
Requirement not upgraded as not directly required: six>=1.5 in 
c:\programdata\anaconda3\lib\site-packages (from python-dateutil>=2.1- 
>matplotlib) (1.11.0)
Requirement not upgraded as not directly required: setuptools in 
c:\programdata\anaconda3\lib\site-packages (from kiwisolver>=1.0.1- 
>matplotlib) 
(39.1.0)
distributed 1.21.8 requires msgpack, which is not installed.
Installing collected packages: scikit-learn, matplotlib
Found existing installation: scikit-learn 0.19.1
Uninstalling scikit-learn-0.19.1:
Could not install packages due to an EnvironmentError: [WinError 5] Access 
is denied: 'c:\\programdata\\anaconda3\\lib\\site-packages\\scikit_learn- 
0.19.1-py3.6.egg-info\\dependency_links.txt'
Consider using the `--user` option or check the permissions.

感谢所有知道我做错了什么的人。

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/40008
文章 [ 1 ]  |  最新文章 7 年前