python :anaconda 使用

With over 6 million users, the open source Anaconda Distribution is the easiest way to do Python data science and machine learning. It includes 250+ popular data science packages and the conda package and virtual environment manager for Windows, Linux, and MacOS. Conda makes it quick and easy to install, run, and upgrade complex data science and machine learning environments like Scikit-learn, TensorFlow, and SciPy. Anaconda Distribution is the foundation of millions of data science projects as well as Amazon Web Services’ Machine Learning AMIs and Anaconda for Microsoft on Azure and Windows.

anaconda 是一款软件
方便安装
可以管理python环境
并且自带很多包
为你学习python铺平了道路

______具体使用__________

安装的时候,记得勾选上add path 选项

安装后,打开 anaconda的命令行

通过 conda create –name [name] python=[python版本]
例子:conda create –name py36 python=3.6
这样在vens目录下就创建了一个名字叫做py36的虚拟python环境, 并且版本是3.6
同理创建一个python 3.5版本的环境
conda create –name py35 python=3.5

激活环境:
Windows上:
activate [name]
例如:
activate py36

mac Linux 上激活虚拟环境:
source activate [name]
例如:
source activate py36

这时候我们查看当前版本:
python –version

:取消激活
Windows上:
deactivate [name]
例如:
deactivate py36
(如果报错,直接输入deactivate,不需要跟参数)

mac Linux 上激活虚拟环境:
source deactivate [name]
例如:
source deactivate py36
(如果报错,直接输入deactivate,不需要跟参数)
删除
conda remove –name py36 –all

查看虚拟环境信息
conda info –envs // 这里是两个-
或者等同于 conda info -e //这里是一个-

猜你喜欢

转载自blog.csdn.net/xiaoxiaodechongzi/article/details/79911211