Ubuntu18.04 installation Anaconda3 and VSCode guide

Introduction

Taking advantage of the weekend, I installed my old computer at home as an ubuntu system. Install Anaconda3 and VSCode today and record it.

Install VSCode

  1. Download the installation package on the official website
  2. In the installation package directory, run sudo dpkg -i code_1.24.1-1528912196_amd64.deb

  1. It is best to install VSCode and change the language (install the Chinese plug-in and set Configure Display Language to zh-CN)

Download Anaconda3

Download address: 1. Download from the official website. 2. Download from Tsinghua source. The second method downloads faster.

Tsinghua University source address: https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/

Version selection: I downloaded anaconda3-5.3.1 corresponding to python3.7

Install Anaconda3

  1. Open the terminal and cd to the .sh file directory (usually in Downloads)
  2. Run command
  3. The first interface is the registration information, enter yes, then press Enter, enter to read the registration information, until the next place where you need to enter yes
  4. Confirm the installation location, enter yes
  5. Ask whether to add environment variables, enter yes
  6. Ask if you want to install VSCode, this is all you need.

Configure VSCode

You can refer to my previous tweets for this part.

After configuration, you can write Python in VSCode of ubuntu

Add environment variables

At this point, you can write and run python programs in VSCode, but you cannot use the pip and conda commands in the terminal because the environment variables are not modified.

Please install Vim before proceeding with this step. Installation method:

sudo apt-get install vim

First use Vim to open the file, enter the following command in the terminal

vim ~/.bashrc

Then press a to enter edit mode, add at the end

export PATH=~/anaconda3/bin:$PATH

After editing, press ESC, enter :wq to save and exit.

Finally, restart the environment variables.

source ~/.bashrc

Recommended Posts

Ubuntu18.04 installation Anaconda3 and VSCode guide
Ubuntu18.04 system installation and prerequisite software installation guide
Ubuntu introduction and installation
Anaconda introduction and Ubuntu/windows installation Anaconda
Ubuntu16.04 installation and simple configuration
Ubuntu PostgreSQL installation and configuration
Redis installation under ubuntu and windows
Ubuntu 19.1 installation and configuration Chinese environment
Configuration and beautification after Ubuntu installation (1)
Nginx installation and configuration load (ubuntu12.04)
Ubuntu configuration source and installation software
ubuntu Docker installation and deployment of Rancher
Ubuntu installation and deployment Redash operation notes (2020.08)
Installation and uninstallation of CUDA under Ubuntu 16.04
Installation and deployment of Nginx in Ubuntu
Installation and use of Win10 subsystem Ubuntu
DLNA/UPnP Server installation and configuration under Ubuntu 12.04
Centos5 installation guide
UBUNTU 16.04 installation diary
ubuntu 1804 installation details
Ubuntu install guide
Python Anaconda installation
ubuntu beautification guide
Ubuntu system installation
Ubuntu installation record
ubuntu 18.04 installation (UEFI+GBT)
ubuntu installation error
Installation of pulseaudio and API usage under Ubuntu 12.04
Virtual machine installation and configuration ubuntu shared folder_
Win10 install Linux ubuntu-18.04 dual system (installation guide)
Kaldi installation and configuration graphic tutorials under Ubuntu
Basic configuration and common software installation after ubuntu 18.04 installation
Installation, configuration and uninstallation of GitLab in Ubuntu19.1
Technical corner | Windows 10/7 and Ubuntu 18.04 dual system installation
Installation and use of SSH in Ubuntu environment
Manual for Ubuntu Installation
install vscode on ubuntu18
PyCUDA-Ubuntu 14.04 installation and testing
Ubuntu16.04 mirror complete installation and configuration tutorial under VMware
Summary: Ubuntu Python2.x and
Ubuntu16.04 installation partition settings
ubuntu redis php installation
OpenMPI-Ubuntu installation and configuration
Ubuntu offline installation package
Ubuntu and RHEL dual Linux operating system installation tutorial
Ubuntu20.04 experience and beautification
Installation and use of GDAL in Python under Ubuntu
[python] python2 and python3 under ubuntu
ubuntu nice font installation
LNMP installation under Ubuntu
ubuntu iptables firewall guide
Installation and simple practice of MySQL in ubuntu environment (1)
Ubuntu12 step-by-step installation and configuration (system, FTP, TELNET.. settings)
Ubuntu CEPH quick installation
foreman ubuntu16 quick installation
Ubuntu 17.10 installation toss record
One, docker into the pit (win10 and Ubuntu installation)
Common exceptions and solutions for Ubuntu system installation and configuration
Ubuntu backup and restore
Ubuntu dual system installation
Installation and usage instructions of rz/sz command under ubuntu