安装机器学习框架scikit-learn

运行环境:windows 10+python3.6
Scikit-learn requires:

Python (>= 2.7 or >= 3.4),
NumPy (>= 1.8.2),
SciPy (>= 0.13.3).

C:\Windows\System32>pip install -U scikit-learn
Collecting scikit-learn
  Downloading https://files.pythonhosted.org/packages/c1/1c/8fa5aefe23a2fc254e9faadc10a30052c63d92f05fb59127ff0e65e4171c/scikit_learn-0.20.2-cp36-cp36m-win_amd64.whl (4.8MB)
    100% |████████████████████████████████| 4.8MB 703kB/s
Requirement already satisfied, skipping upgrade: numpy>=1.8.2 in c:\dev\python36\lib\site-packages (from scikit-learn) (1.15.4)
Requirement already satisfied, skipping upgrade: scipy>=0.13.3 in c:\dev\python36\lib\site-packages (from scikit-learn) (0.19.1)
Installing collected packages: scikit-learn
Successfully installed scikit-learn-0.20.2

--安装之后查询:
C:\Windows\System32>pip list | findstr sci
scikit-learn                0.20.2
scipy                       0.19.1

C:\Windows\System32>python -V
Python 3.6.6

--pip 版本更新:
C:\>python -m pip install --upgrade pip


--安装scipy学习的全家桶:
pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose

或者:
pip install numpy scipy matplotlib seaborn -i https://mirrors.ustc.edu.cn/pypi/web/simple

安装jupyter软件:
C:\>pip install jupyter  -i https://mirrors.ustc.edu.cn/pypi/web/simple


--提示信息:
mysql-connector-python 8.0.12 requires protobuf>=3.0.0, which is not installed.
--解决办法:
C:\>pip install protobuf
参考:
https://scikit-learn.org/stable/install.html

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值