由于需要接触了jupyter的原因,所以才涉及到了anaconda 的源配置问题
主要参考:
对于anaconda的管理
http://blog.csdn.net/guan__hua/article/details/61240932
http://blog.csdn.net/macer3/article/details/50357562
报错的解决
http://blog.csdn.net/u010751535/article/details/50806073
--------------------------jupyter notebook的使用入门--------------------------------------
http://codingpy.com/article/getting-started-with-jupyter-notebook-part-1/
http://python.jobbole.com/87527/?repeat=w3tc
-----------------------由于anaconda默认是国外的源,因此,需要改成国内唯一的清华的源
conda config --add channels 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/'
conda config --set show_channel_urls yes
然后编辑~/.condarc文件
将-default去掉,否则不会添加清华的源
-------------------------------------------------------------
遇到的问题:
问题1:
下载完毕后,执行,根据提示安装到想要安装的目录下
>sudo bash Anaconda2-2.5.0-Linux-x86_64.sh
如果遇到 Error: Missing write permissions in: */anaconda2
You don't appear to have the necessary permissions to update packages
into the install area */anaconda2
运行下面指令,更改组群可以解决(请把usr 和 */ 替换为自己的内容)
>sudo chown -R usr */anaconda2
在这里我把它改成:sudo chown -R xuy /home/xuy/anaconda2
问题2:
用conda install seaborn 时发现权限受限的问题,具体描述为
CondaIOError: IO error: Missing write permissions in: /home/wgb/anaconda3
#
# You don't appear to have the necessary permissions to install packages
# into the install area '/home/wgb/anaconda3'.
# However you can clone this environment into your home directory and
# then make changes to it.
# This may be done using the command:
#
# $ conda create -n my_root --clone=/home/wgb/anaconda3
sudo chmod -R +x /home/wgb/anaconda3
然后
conda install seaborn