python之Anaconda python3.7安装

yum安装python3.8 : https://blog.csdn.net/sedbz/article/details/123106371

yum安装python3.6 : yum install python36-devel

1、下载

https://www.anaconda.com/distribution/

#你会发现,使用windows下载十分慢,既然这样,为何不尝试centos(linux)安装呢?本人使用centos7下载速度极快

wget https://repo.anaconda.com/archive/Anaconda3-2019.07-Linux-x86_64.sh

2、安装

chmod 777  Anaconda3-2019.07-Linux-x86_64.sh  #添加运行权限 ,一般755权限就够了,个人快速一点就777了

然后就一直yes 咯

3、Anaconda python3.7相比以前的版本多了一个虚拟环境,激活虚拟环境

conda activate  #激活虚拟环境,进行python编程吧

然后就看到,有一个base
(base) [root@medecineit ~]# python
Python 3.7.3 (default, Mar 27 2019, 22:11:17) 
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()

conda deactivate #退出虚拟环境,就没有base了
(base) [root@medecineit ~]# conda deactivate
[root@medecineit ~]#

 4、安装成功的提示语

==> For changes to take effect, close and re-open your current shell. <==

If you'd prefer that conda's base environment not be activated on startup, 
   set the auto_activate_base parameter to false: 

conda config --set auto_activate_base false

Thank you for installing Anaconda3!

===========================================================================

Working with Python and Jupyter notebooks is a breeze with PyCharm Pro,
designed to be used with Anaconda. Download now and have the best data
tools at your fingertips.

 5、虚拟环境(win10请使用powershell)

conda config --remove-key channels
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/win-64
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/win-64
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/cloud/pytorch/win-64
conda config --set show_channel_urls yes
pip config set global.index-url https://mirrors.ustc.edu.cn/pypi/web/simple


conda create -n yolo5 python==3.8.5
conda activate yolo5

 6、conda 常用命令

https://blog.csdn.net/weixin_42159134/article/details/118994619
 
 
 
 
 
 
posted @ 2019-08-08 11:22  小白啊小白,Fighting  阅读(12354)  评论(1编辑  收藏  举报