Skip to main content

2. Our environment in Anaconda

2. Our environment in Anaconda


We will use this free and open source, with applications related to: large-scale data processing, predictive analytics, scientific computing; that aims to simplify package management and deployment. Ref

2.1. How to install Anaconda


Easy! Follow my steps:




2. Slide to the bottom of the page
3. Click on “Download Anaconda”
4. A new tab will open (see below), where you decide if you want Python 2.7 or 3.6



I recommend the version 3.6
5. Click on the chosen version and follow the downloading process (read the conditions, accept them, select where to store the Navigator…)
6. I recommend installing it inside the User Directory (in case you are sharing the computer with other Users), for instance in the Desktop

All set!


2.2. How to create our environment


If installing Anaconda was easy, this is a piece of cake! Follow my steps:
1. Open Anaconda Navigator (I’d keep it in Dock so that it’s easier to access)


2. On the left menu, select Environments
3. You’ll find the default environment base(root) as it appears on the image.




In the bottom menu, we can Create a New Environment, Clone, Import, or Remove the existing environments.

If we click on the green arrow next to the Name of the Environment, we can Open it in the Terminal, with Python, with iPython and with Jupyter Notebook.

On the right hand part, we have the packages that Anaconda Navigator offers, with a small description and the version.

Trick: if the version appears in blue, it means that there exists a higher version of such package; i.e. it is updateable!



2.3. Why things may not work sometimes


Well, in life many things do not work and there is no explanation found yet. However, it is your day of luck, and the reason for this  is probably that you don’t have the package downloaded. Then go to Anaconda Navigator > Environments > “MY CREATED ENVIRONMENT” and in the top menu, there is a sliding bar containing: Installed, Uninstalled, Updatable, Selected, All. There you go, if something does not work (you can look at it in the searching bar at the right), it is either because you have not downloaded it, or because you need to update it.

Trick: another option is from the Terminal (if Mac) or Command Window (if Window), install or update any package. Example:
pip install numpy

Another trick: install things from Anaconda (in your Terminal/Command Window)
conda install numpy
conda update scikitlearn
This will install numpy (if inexistent) and update the ScikitLearn current version.

Comments

Post a Comment

Popular posts from this blog

4. Understand how a Neural Network works

4. Understand how a Neural Network works 4.1. Graphical Understanding In order to start in this world, it is important first to have a visual perception of what we are going to deal with, and understand the basics of how Neural Networks work, in the raw form. Image Source A Neural Network (NN) is nothing else than a net of perceptrons that are linked so that input fires another network that produces an output.  Of course, a NN has assigned values that allow to make further calculations and learning.   Image source So far the two images above represent a simple NN with 1 input, 1 output and 1 hidden layer. The hidden layer is said to be dense (each neuron in a layer x is connected to all neurons in the layer x-1 and all the neurons in the layer x+1). Depending on how the neurons are organized and how the connections are made, we can find many different types of NN:   Types of NN (image source and explanation) 4.2....