一、安装相关库
安装顺序如下:
1. Numpy库
2. Scipy库
3. matplotlib库
4. sklearn库
//Numpy库、Scipy库、matplotlib库下载地址:http://www.lfd.uci.edu/~gohlke/pythonlibs/
1.依赖库之Numpy的安装
本课程使用的是Python3.5的64位版,则下载win_amd64.whl文件。
找到下载的文件的路径,打开windows的DOS命令行窗口,执行如下命令:
pip install “numpy-1.11.3+mkl-cp35-cp35m-win_amd64.whl”
2.依赖库之Scipy的安装
同样这里需要下载*win_amd64.whl文件。
找到下载的文件的路径,打开windows的DOS命令行窗口,使用如下命令:
pip install scipy-0.19.0-cp35-cp35m-win_amd64.whl
3.依赖库之matplotlib的安装
下载win_amd64.whl文件。
找到下载的文件的路径,打开windows的DOS命令行窗口,使用如下命令:
pip install matplotlib-2.0.0-cp35-cp35m-win_amd64.whl
//sklearn库下载地址:https://pypi.python.org/pypi/scikit-learn/0.18.1
4.sklearn库的安装
同样这里需要下载win_amd64.whl文件。
找到下载的文件的路径,打开windows的DOS命令行窗口,使用如下命令:
pip install scikit_learn-0.18.1-cp35-cp35m-win_amd64.whl
资源链接
1.Anaconda使用总结
http://www.jianshu.com/p/2f3be7781451
Filename Size Last Modified MD5
Anaconda3-4.4.0-Windows-x86_64.zip 435.2M 2017-05-30 14:13:30 f762259df2fe325575445c25a8f27080
2.厦门大学数据库实验室
http://dblab.xmu.edu.cn/blog/python-machine-learning-package-windows/
3.python库下载链接
http://www.lfd.uci.edu/~gohlke/pythonlibs/
安装过程
pip install matplotlib-2.0.0-cp35-cp35m-win_amd64.whl
//发生错误
Exception:
Traceback (most recent call last):
File “d:\dev03_python\python\lib\site-packages\pip\basecommand.py”, line 215, in main
status = self.run(options, args)
File “d:\dev03_python\python\lib\site-packages\pip\commands\install.py”, line 324, in run
requirement_set.prepare_files(finder)
File “d:\dev03_python\python\lib\site-packages\pip\req\req_set.py”, line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File “d:\dev03_python\python\lib\site-packages\pip\req\req_set.py”, line 620, in _prepare_file
session=self.session, hashes=hashes)
File “d:\dev03_python\python\lib\site-packages\pip\download.py”, line 809, in unpack_url
unpack_file_url(link, location, download_dir, hashes=hashes)
File “d:\dev03_python\python\lib\site-packages\pip\download.py”, line 715, in unpack_file_url
unpack_file(from_path, location, content_type, link)
File “d:\dev03_python\python\lib\site-packages\pip\utils__init__.py”, line 599, in unpack_file
flatten=not filename.endswith(‘.whl’)
File “d:\dev03_python\python\lib\site-packages\pip\utils__init__.py”, line 482, in unzip_file
zipfp = open(filename, ‘rb’)
FileNotFoundError: [Errno 2] No such file or directory: ‘F:\工具集\python开发工具\matplotlib-2.0.0-cp35-cp35m-win_amd64.whl’
//原因是没有这个文件,正确命令应该是ip install matplotlib-2.0.2-cp35-cp35m-win_amd64.whl
二、安装ipython
1.ipython notebook
C:\Users\Administrator>pip install "ipython[notebook]"
2.在工作目录下打开
D:\Dev03_Python\workspace>ipython notebook
三、流程截图