Getting Started with Python 3.5 and Anaconda 3.5 on Ubuntu 16.04

Getting Started with Python 3.5 and Anaconda 3.5 on Ubuntu 16.04
Python and Anaconda are two essential tools for data scientists. Python is a high-level, interpreted programming language known for its simplicity and readability. Anaconda, on the other hand, is a free and open-source distribution of Python and R programming languages for scientific computing. This blog post will guide you through the process of installing Python 3.5 and Anaconda 3.5 on Ubuntu 16.04.
Step 1: Update and Upgrade Your System
Before installing Python and Anaconda, it’s crucial to update and upgrade your system. Open your terminal and run the following commands:
sudo apt-get update
sudo apt-get upgrade
Step 2: Install Python 3.5
Ubuntu 16.04 comes with Python 3.5 pre-installed. However, if you need to install it, use the following command:
sudo apt-get install python3.5
To verify the installation, run:
python3.5 --version
You should see Python 3.5.x
as the output.
Step 3: Install Anaconda 3.5
To install Anaconda, you need to download the Anaconda 3.5 installer script from the official website. Use the wget
command to download it:
wget https://repo.anaconda.com/archive/Anaconda3-5.0.1-Linux-x86_64.sh
After downloading the installer script, run the script using bash
:
bash Anaconda3-5.0.1-Linux-x86_64.sh
Follow the prompts on the terminal to complete the installation. At the end of the installation, the script will ask whether you want to prepend the Anaconda3 install location to PATH in your ~/.bashrc
. It is recommended to say yes.
To activate the installation, source the ~/.bashrc
file:
source ~/.bashrc
To verify the installation, use:
conda --version
You should see conda 4.3.30
or similar as the output.
Step 4: Create a Python 3.5 Environment Using Anaconda
Anaconda allows you to create a separate environment for different projects. To create a Python 3.5 environment, use the following command:
conda create -n myenv python=3.5
Here, myenv
is the name of the environment. You can replace it with any name you prefer.
To activate the environment, use:
source activate myenv
Now, you have a separate Python 3.5 environment for your project.
Conclusion
In this blog post, we’ve walked through the process of installing Python 3.5 and Anaconda 3.5 on Ubuntu 16.04. These tools are essential for data scientists and will help you manage your projects more effectively. Remember, the key to successful data science is not just knowing how to write code, but also how to manage your tools and environments.
Keywords
- Python 3.5
- Anaconda 3.5
- Ubuntu 16.04
- Installation
- Data Science
- Environment Management
Meta Description
Learn how to install Python 3.5 and Anaconda 3.5 on Ubuntu 16.04. This step-by-step guide is perfect for data scientists looking to set up their programming environment.
About Saturn Cloud
Saturn Cloud is your all-in-one solution for data science & ML development, deployment, and data pipelines in the cloud. Spin up a notebook with 4TB of RAM, add a GPU, connect to a distributed cluster of workers, and more. Join today and get 150 hours of free compute per month.