博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ubuntu16.04安装anaconda和改pip、conda源
阅读量:2051 次
发布时间:2019-04-28

本文共 2755 字,大约阅读时间需要 9 分钟。

1、ancanda下载

下载地址:

源地址:

清华源的下载地址(推荐):

python3.6的对应的是 Anaconda 5.2,

Anaconda 5.3以后的都是python 3.7的不要看错了

2、安装

千万不要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、修改pip和conda源

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/

你可能感兴趣的文章
【虫师】【selenium】参数化
查看>>
【JMeter】如何用JMeter进行压力测试
查看>>
【Python练习】文件引用用户名密码登录系统
查看>>
学习网站汇总
查看>>
【Python】用Python打开csv和xml文件
查看>>
【Loadrunner】性能测试报告实战
查看>>
【面试】一份自我介绍模板
查看>>
【自动化测试】自动化测试需要了解的的一些事情。
查看>>
【selenium】selenium ide的安装过程
查看>>
【手机自动化测试】monkey测试
查看>>
【英语】软件开发常用英语词汇
查看>>
Fiddler 抓包工具总结
查看>>
【雅思】雅思需要购买和准备的学习资料
查看>>
【雅思】雅思写作作业(1)
查看>>
【雅思】【大作文】【审题作业】关于同不同意的审题作业(重点)
查看>>
【Loadrunner】通过loadrunner录制时候有事件但是白页无法出来登录页怎么办?
查看>>
【Python】Python 读取csv的某行或某列数据
查看>>
【Loadrunner】平台1.9环境APP成功录制并调试成功后的脚本备份
查看>>
【Loadrunner】性能测试:通过服务器日志获取性能需求
查看>>
【Python】sasa版:文件中csv读取在写入csv读取的数据和执行是否成功。
查看>>