本文共 1195 字,大约阅读时间需要 3 分钟。
最受欢迎的Python数据科学平台, anaconda集成的很多Python库,当在电脑上安装好Anaconda3以后,就相当于安装好了Python,还有一些常用的库,如numpy,scrip,matplotlib等库
Anaconda 官网下载地址:
下载地址
我使用的是 Python 3.5 版本,这里使用Anaconda3-4.2.0-Windows-x86_64.exe版本
1、打开Anaconda Prompt,输入下面命令用于创建一个虚拟环境,名字叫tensorflow, 同时指定python的版本,如果本机内没有安装这个版本的python,就会自动下载安装。
conda create -n tensorflow python=3.5
2、激活虚拟环境
activate tensorflow
3、经过第2步,进入了tensorflow虚拟环境中了,所以现在所有的操作将只会影响到这个环境。下面在这个环境中安装名为tensorflow的软件。
pip install tensorflow 或者pip install –ignore-installed –upgrade tensorflow
在Anaconda Prompt中查看新建的虚拟环境在哪个目录下:> conda env list
File→setting→Project:XXXX→Project Interperter
可以新建一个,也可以选择上面所创建的虚拟环境。
本人Anaconda安装路径为:C:\Users\Administrator\Anaconda3 上面步骤所创建的虚拟环境的路径为:C:\Users\Administrator\Anaconda3\python.exe,其中tensorflow表示虚拟环境的名字。
如果要在这个环境下添加工具包,需要在Anaconda Prompt中操作。
快捷方式后加入具体目录
C:\Users\Administrator\Anaconda3\python.exe C:\Users\Administrator\Anaconda3\cwp.py C:\Users\Administrator\Anaconda3 "C:/Users/Administrator/Anaconda3/python.exe" "C:/Users/Administrator/Anaconda3/Scripts/jupyter-notebook-script.py" E:\python\jupyter-notebook
Numpy
Scipy
Pandas
Matplotlib
Scikit-learn
转载地址:http://sclnn.baihongyu.com/