美文网首页
[软件]在anaconda的jupyte环境中配置R pytho

[软件]在anaconda的jupyte环境中配置R pytho

作者: 郑宝童 | 来源:发表于2018-11-15 15:10 被阅读88次

1. 下载安装anaconda -官网 -清华的镜像:

Anaconda 安装包可以到 https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/ 下载。

#下载安装conda
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-5.3.0-Linux-x86_64.sh
sh Anaconda3-5.3.0-Linux-x86_64.sh

环境变量配置
打开家目录底下的.bash_profile
vim ./.bash_profile

#敲入
export PATH=/home/zhengbt2017/anaconda3/bin:$PATH

保存退出。然后在命令行界面敲下:

source ./.bash_profile

这样就把conda环境变量中。

2. 添加清华的源(使得下载加速)

    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
    conda config --set show_channel_urls yes

添加第三方源

当前tuna还维护了一些anaconda三方源。Conda Forge

   conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/

msys2

   conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/

3conda update conda 升级版本conda
4.添加库

conda config --add channels conda-forge
conda config --add channels defaults
conda config --add channels r
conda config --add channels bioconda

5.安装python2.7

conda create -n python2_env python=2

activate python2_env

conda install notebook ipykernel
python -m ipykernel install --user

6.安装R (建新环境)

conda create -n R_env -c r-essentials (在当前环境下安装)

conda install -c r r-essentials

7.安装julia -下载安装julia

-Pkg.update()

-Pkg.add("IJulia")

-notebook()

启动jupyter只需要在cmd命令行界面敲入:
jupyter notebook

简书上还包含了许多关于conda的文章,这里也列出一些些,供学习参考:

相关文章

网友评论

      本文标题:[软件]在anaconda的jupyte环境中配置R pytho

      本文链接:https://www.haomeiwen.com/subject/tvsyfqtx.html