1.安装Homebrew

https://github.com/Homebrew/install

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

 

2.安装python3.0

https://www.python.org/ftp/python/3.6.2/

 

3.安装pip

安装pip

由于scikit-learn官方给的步骤是使用pip安装,所以要先安装pip。我是用了pip官方提供的安装页面 但是没有成功。因此想使用homebrew安装pip。使用以下命令安装:

1 sudo brew install pip

提示如下:

1 Homebrew provides pip via: `brew install python`. However you will thenhave two Pythons installed on your Mac, so alternatively you can:sudo easy_install pip

因为我之前已经装过了Python的easy_install,因此可以直接使用easy_install安装,命令如下:

1 sudo easy_install pip

 

 

4.pip install -U scikit-learn

 

 

 

 

https://www.youtube.com/watch?v=ZiKMIuYidY0

相关文章:

  • 2021-07-12
  • 2022-01-04
  • 2022-01-20
  • 2021-11-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-18
  • 2021-09-28
  • 2021-08-15
  • 2021-12-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案