Hey scientist! How is it going?
We changed our opinion on Python distributions! They ease your life!
Today we’ll show how to install one of the main scientific Python distros, Anaconda!
Alright dear scientist, do you remember this post, where I said that I’d rather use the system versions of Python? Now I was shocked, after I discovered the ease that the distros bring to us. Anaconda, for instance, has more than 190 scientific packages! It lets your PC ready to use several Python packages!
Installing Anaconda is very simple. Download the installer here, according to your system and Python version. You just need to look at the section aimed to your system. We want Python 3. The most recent version when we updated this post was 3.5. For Linux, the download screen looks like this:
After downloading, follow the install procedures of your system. On Linux, you open a terminal on the folder that the installer is (for us, ~/Downloads) and type the command below.
Then the installation begins with the license agreement. To install Anaconda, we need to accept the conditions. Answer yes when asked.
Now it’s time to choose the folder where Anaconda will be installed. If you don’t want to change the folder, press Enter when the option appears:
After installing the packages, the installation asks to put Anaconda information on your path; doing that, you can access the packages directly on terminal. I would say yes:
The installation says goodbye, and you’re good to go!
After installing Anaconda, we can install available packages using the command conda install.
As an example, to install the development environment Spyder (which will help us big time!), we type on a Linux terminal:
Then, to execute Spyder:
This is how Spyder looks. Did you like Spyder? Next week I’ll show you guys how to use it! 🙂
Besides conda install, we have conda update, used to update packages from your Anaconda distro. The following commands are used to update the conda system. Press Enter to proceed:
That’s it! Now you have a powerful tool to work with scientific Python! On the next Python posts we’ll work with Anaconda and Spyder until we say we’ll not 🙂
Thanks scientist! Gigaregards!
Did you like this post? Please comment and share with your friends!
Want to download Programando Ciência codes? Go to our GitHub!
Make a donation for Programando Ciência!
Like us also on Facebook: www.facebook.com/programandociencia
I’m on Twitter! Follow me if you can! @alexdesiqueira