Today, I installed ubuntu16.04 on an idle computer in the lab, and then I want to install the Anaconda environment on it. After querying information and blogs, the final implementation is as follows:
- Download Anaconda from the official website of another laptop: https://www.continuum.io/downloads#linux
ifconfig -a
Use the command to view the local ip under Ubuntu- The notebook uses MobaXterm SSH to connect to Ubuntu (recommended by girlfriend, it is really good), copy the files to the downloads folder under the user (because Ubuntu does not recognize the U disk)
- Invoke the command in the downloads folder to
bash Anaconda2-4.4.0-Linux-x86_64.sh
start the installation - Press yes several times to agree to the agreement
- After the installation is successful, run it directly
conda list
to see if the installation is successful, or run it directlypython
to see if there is an Anaconda suffix behind it - If step 6 is unsuccessful, then we need to manually add it in the .bashrc file
export PATH="/opt/anaconda3/bin:$PATH"
, and then enter it on the command linesource ~/.bashrc
, you can use the command directlyexport PATH="/opt/anaconda3/bin:$PATH" >> ~/.bashrc
- Re-verify step 6, success