学习Python,scikit-image安装和scikit-learn安装

管理员身份打开cmd

 

查看自己Python版本

C:\Windows\system32>python
Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy 中,根据自己python版本下载需要的包

 

我选择cp37    64位

 

numpy‑1.15.4+mkl‑cp37‑cp37m‑win_amd64.whl

scipy‑1.2.0rc1‑cp37‑cp37m‑win_amd64.whl

scikit_image‑0.14.1‑cp37‑cp37m‑win_amd64.whl

 

 

matplotlib‑3.0.2‑cp37‑cp37m‑win_amd64.whl

scikit_learn‑0.20.1‑cp37‑cp37m‑win_amd64.whl

 

matplotlib‑3.0.2.chm

 

将下载的文件放到Python安装目录下的Scripts目录下

x:\Python xx\Scripts

 

帮助文件放在顺手的地方,以备不时之需。

 

去到Python安装Scripts目录下,再使用pip install xxx.whl安装,先装Numpy\Scipy\Matlotlib包,再安装scikit-image,Scikit-Learn。

这个过程保持联网。

 

直到返回 成功

 

在python中输入“ import skimage ”, “ import sklearn ”,验证安装是否成功

C:\Program Files\Python37\Scripts>pip install numpy-1.15.4+mkl-cp37-cp37m-win_amd64.whl
Processing c:\program files\python37\scripts\numpy-1.15.4+mkl-cp37-cp37m-win_amd64.whl
Installing collected packages: numpy
Successfully installed numpy-1.15.4+mkl
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

C:\Program Files\Python37\Scripts>pip install scipy-1.2.0rc1-cp37-cp37m-win_amd64.whl
Processing c:\program files\python37\scripts\scipy-1.2.0rc1-cp37-cp37m-win_amd64.whl
Requirement already satisfied: numpy>=1.8.2 in c:\program files\python37\lib\site-packages (from scipy==1.2.0rc1) (1.15.4+mkl)
Installing collected packages: scipy
Successfully installed scipy-1.2.0rc1
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

C:\Program Files\Python37\Scripts>pip install matplotlib-3.0.2-cp37-cp37m-win_amd64.whl
Processing c:\program files\python37\scripts\matplotlib-3.0.2-cp37-cp37m-win_amd64.whl
Requirement already satisfied: numpy>=1.10.0 in c:\program files\python37\lib\site-packages (from matplotlib==3.0.2) (1.15.4+mkl)
Collecting kiwisolver>=1.0.1 (from matplotlib==3.0.2)
  Downloading https://files.pythonhosted.org/packages/7c/be/7ae355b45699460e369ebf88d86058fca26827933974cc3f6b6b7800a324/kiwisolver-1.0.1-cp37-none-win_amd64.whl (57kB)
    100% |████████████████████████████████| 61kB 274kB/s
Collecting cycler>=0.10 (from matplotlib==3.0.2)
  Downloading https://files.pythonhosted.org/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl
Collecting python-dateutil>=2.1 (from matplotlib==3.0.2)
  Downloading https://files.pythonhosted.org/packages/74/68/d87d9b36af36f44254a8d512cbfc48369103a3b9e474be9bdfe536abfc45/python_dateutil-2.7.5-py2.py3-none-any.whl (225kB)
    100% |████████████████████████████████| 235kB 958kB/s
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 (from matplotlib==3.0.2)
  Downloading https://files.pythonhosted.org/packages/71/e8/6777f6624681c8b9701a8a0a5654f3eb56919a01a78e12bf3c73f5a3c714/pyparsing-2.3.0-py2.py3-none-any.whl (59kB)
    100% |████████████████████████████████| 61kB 6.2MB/s
Requirement already satisfied: setuptools in c:\program files\python37\lib\site-packages (from kiwisolver>=1.0.1->matplotlib==3.0.2) (39.0.1)
Collecting six (from cycler>=0.10->matplotlib==3.0.2)
  Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Installing collected packages: kiwisolver, six, cycler, python-dateutil, pyparsing, matplotlib
Successfully installed cycler-0.10.0 kiwisolver-1.0.1 matplotlib-3.0.2 pyparsing-2.3.0 python-dateutil-2.7.5 six-1.11.0
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

C:\Program Files\Python37\Scripts>pip install scikit_image-0.14.1-cp37-cp37m-win_amd64.whl
Processing c:\program files\python37\scripts\scikit_image-0.14.1-cp37-cp37m-win_amd64.whl
Collecting pillow>=4.3.0 (from scikit-image==0.14.1)
  Downloading https://files.pythonhosted.org/packages/55/ea/305f61258278790706e69f01c53e107b0830ea5a4a69aa1f2c11fe605ed3/Pillow-5.3.0-cp37-cp37m-win_amd64.whl (1.6MB)
    100% |████████████████████████████████| 1.6MB 78kB/s
Collecting PyWavelets>=0.4.0 (from scikit-image==0.14.1)
  Downloading https://files.pythonhosted.org/packages/ee/6a/0cb06c09d558824c37ca836600426f804efd034015a27f0062c3f53f9c15/PyWavelets-1.0.1-cp37-none-win_amd64.whl (4.2MB)
    100% |████████████████████████████████| 4.2MB 123kB/s
Collecting dask[array]>=0.9.0 (from scikit-image==0.14.1)
  Downloading https://files.pythonhosted.org/packages/b4/e5/6407c2349622699eab0881e6bc6e978b8da67872a105e5e20b72ff190c65/dask-1.0.0-py2.py3-none-any.whl (685kB)
    100% |████████████████████████████████| 686kB 90kB/s
Collecting cloudpickle>=0.2.1 (from scikit-image==0.14.1)
  Downloading https://files.pythonhosted.org/packages/fc/87/7b7ef3038b4783911e3fdecb5c566e3a817ce3e890e164fc174c088edb1e/cloudpickle-0.6.1-py2.py3-none-any.whl
Requirement already satisfied: six>=1.10.0 in c:\program files\python37\lib\site-packages (from scikit-image==0.14.1) (1.11.0)
Collecting networkx>=1.8 (from scikit-image==0.14.1)
  Downloading https://files.pythonhosted.org/packages/f3/f4/7e20ef40b118478191cec0b58c3192f822cace858c19505c7670961b76b2/networkx-2.2.zip (1.7MB)
    100% |████████████████████████████████| 1.7MB 87kB/s
Requirement already satisfied: numpy>=1.9.1 in c:\program files\python37\lib\site-packages (from PyWavelets>=0.4.0->scikit-image==0.14.1) (1.15.4+mkl)
Collecting toolz>=0.7.3; extra == "array" (from dask[array]>=0.9.0->scikit-image==0.14.1)
  Downloading https://files.pythonhosted.org/packages/14/d0/a73c15bbeda3d2e7b381a36afb0d9cd770a9f4adc5d1532691013ba881db/toolz-0.9.0.tar.gz (45kB)
    100% |████████████████████████████████| 51kB 103kB/s
Collecting decorator>=4.3.0 (from networkx>=1.8->scikit-image==0.14.1)
  Downloading https://files.pythonhosted.org/packages/bc/bb/a24838832ba35baf52f32ab1a49b906b5f82fb7c76b2f6a7e35e140bac30/decorator-4.3.0-py2.py3-none-any.whl
Installing collected packages: pillow, PyWavelets, toolz, dask, cloudpickle, decorator, networkx, scikit-image
  Running setup.py install for toolz ... done
  Running setup.py install for networkx ... done
  The script skivi.exe is installed in 'c:\program files\python37\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed PyWavelets-1.0.1 cloudpickle-0.6.1 dask-1.0.0 decorator-4.3.0 networkx-2.2 pillow-5.3.0 scikit-image-0.14.1 toolz-0.9.0
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

C:\Program Files\Python37\Scripts>pip install scikit_learn-0.20.1-cp37-cp37m-win_amd64.whl
Processing c:\program files\python37\scripts\scikit_learn-0.20.1-cp37-cp37m-win_amd64.whl
Requirement already satisfied: scipy>=0.13.3 in c:\program files\python37\lib\site-packages (from scikit-learn==0.20.1) (1.2.0rc1)
Requirement already satisfied: numpy>=1.8.2 in c:\program files\python37\lib\site-packages (from scikit-learn==0.20.1) (1.15.4+mkl)
Installing collected packages: scikit-learn
Successfully installed scikit-learn-0.20.1
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

C:\Program Files\Python37\Scripts>python
Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import skimage
>>> import sklearn
>>>

附上安装过程。

 

 

 

 

 

 

 

 

 

 

 

  • 1
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值