本文共 2755 字,大约阅读时间需要 9 分钟。
下载地址:
源地址:
清华源的下载地址(推荐):
python3.6的对应的是 Anaconda 5.2,
Anaconda 5.3以后的都是python 3.7的不要看错了
千万不要sudao bash Anaconda3-5.2.0-Linux-x86_64.sh ,sudo权限太高了,对以后使用特麻烦。
bubble@bubble:~/Downloads/service$ bash Anaconda3-5.2.0-Linux-x86_64.sh Welcome to Anaconda3 5.2.0In order to continue the installation process, please review the licenseagreement.Please, press ENTER to continue>>> Do you accept the license terms? [yes|no][no] >>> yesAnaconda3 will now be installed into this location:/home/bubble/anaconda3 - Press ENTER to confirm the location - Press CTRL-C to abort the installation - Or specify a different location below[/home/bubble/anaconda3] >>> PREFIX=/home/bubble/anaconda3installing: python-3.6.5-hc3d631a_2 ...Python 3.6.5 :: Anaconda, Inc........installing: anaconda-5.2.0-py36_3 ...installation finished.Do you wish the installer to prepend the Anaconda3 install locationto PATH in your /home/bubble/.bashrc ? [yes|no][no] >>> yesAppending source /home/bubble/anaconda3/bin/activate to /home/bubble/.bashrcA backup will be made to: /home/bubble/.bashrc-anaconda3.bakFor this change to become active, you have to open a new terminal.Thank you for installing Anaconda3!===========================================================================Anaconda is partnered with Microsoft! Microsoft VSCode is a streamlinedcode editor with support for development operations like debugging, taskrunning and version control.To install Visual Studio Code, you will need: - Administrator Privileges - Internet connectivityVisual Studio Code License: https://code.visualstudio.com/licenseDo you wish to proceed with the installation of Microsoft VSCode? [yes|no]>>> no
3.1 pip源
打开一个终端(快捷键ctrl+alt+T),在终端中分别输入下面两行内容,即在~/路径下创建.pip文件夹和在~/.pip/pip.conf文档
mkdir ~/.pip touch ~/.pip/pip.confgedit ~/.pip/pip.conf
在弹出的文档编辑器里面输入下面内容后保存关闭就可以了:
[global] index-url = https://mirrors.aliyun.com/pypi/simple/ [install] trusted-host=mirrors.aliyun.com
将pip的源改成国内的阿里源,以后使用pip安装包速度就会快飞一般的感觉。
3.2 conda源
打开新的终端或者使用刚才的终端,输入下面命令:
touch ~/.condarcgedit ~/.condarc
在跳出来的文档编辑器中输入粘贴下面内容后保存退出
channels: - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/ - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ - defaultsshow_channel_urls: true
现在pip和conda的源都配置成国内的源了
Error集:
1、
[/home/bubble/anaconda3] >>>
PREFIX=/home/bubble/anaconda3
WARNING: md5sum mismatch of tar archive
expected: d872e1a556042afcd3b5159c917ab170
got: fdc45df27dcd58d8584ec3738e06e826 -
tar: Skipping to next header
tar: A lone zero block at 818701
tar: Exiting with failure status due to previous errors
ERROR: could not extract tar starting at line 752
出现这种情况是因为传输或者拷贝文件过程中损坏文件,你只要重新下载就好了
转载地址:http://frzlf.baihongyu.com/