美文网首页
Ubuntu 18.04 系统从零配置

Ubuntu 18.04 系统从零配置

作者: BoringFantasy | 来源:发表于2020-02-11 19:44 被阅读0次

    1. Notepadqq (Notepad++)

    Just run the following command in a terminal window:

    sudo snap install --classic notepadqq

    (if your distro doesn't have a"snap" command, you have to install it: follow the instructions here)

    2. Python + Anoconda + Pycharm

    2.1 python + pip

    # check the python version in ubuntu 18.04 -- python 3.6.8
    python3 --version
    
    # update system source
    sudo apt update
    
    # pip install
    sudo apt install python3-pip
    
    # Replace pip source
    mkdir ~/.pip
    vim ~/.pip/pip.conf
    # copy this two line to this file.
    [global]
    index-url = https://mirrors.aliyun.com/pypi/simple
    
    # replace source when you downloading.
    sudo pip3 install package -i source_url
    
    清华:https://pypi.tuna.tsinghua.edu.cn/simple
    中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
    华中理工大学:http://pypi.hustunique.com/
    山东理工大学:http://pypi.sdutlinux.org/
    豆瓣:http://pypi.douban.com/simple/
    
    #Building a virtual environment
    pip3 install virtualenv
    pip3 install virtualenvwrapper
    
    virtualenv -p /usr/local/bin/python3.6 env_name --clear
    # active venv.
    source venv/bin/activate
    # deactive venv.
    deactivate
    
    

    2.2 Anoconda

    1. Download package form offical website.

    2.3 Pycharm

    1. download .tar.gz file and unzip.
    cd {download path}/bin
    
    ./pycharm.sh
    
    # add pycharm to env. path
    vi ~/.bashrc
    
    """
    export PATH=/home/xinzhi/pycharm/pycharm-community-2019.3.3/bin:$PATH
    """
    
    # resource path file
    source ~/.bashre
    

    3.R + R Studio

    3.1R

    1. Download the Readme file of R.
    2. cheak source of the latest R packages and add it to the system source list file.
    vi /etc/apt/sources.list
    
    """
    # add R 3.6 packages source 20200211
    deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/
    """
    

    3.install the omplete R system.

    sudo apt-get update
    sudo apt-get install r-base
    
    # install the r-base-dev package for compile R packages from source.
    sudo apt-get install r-base-dev
    

    3.2 R studio

    1. R studio desk download.

    4. Java

    4.1

    # JRE
    sudo apt install default-jre -y
    
    #JDK
    sudo apt install default-jdk -y
    
    # java version check
    java -version
    

    5. Sougou Pingying

    1. Blog.

    6. pytorch.

    1. choose version needed and use commend lind to download.

    7. Convert directory names to English

    1. Blog.

    8. Tensorflow

    1. Install.
    Make sure your pip and conda correspond
    
    # Requires the latest pip
    pip install --upgrade pip
    
    # Current stable release for CPU and GPU
    pip install tensorflow
    
    # Or try the preview build (unstable)
    pip install tf-nightly
    
    

    9. Docker 配置

    1. 查看服务器系统

    cat /etc/redhat-releas

    1. Ubuntu下Docker安装教程

    相关文章

      网友评论

          本文标题:Ubuntu 18.04 系统从零配置

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