2. Our environment in Anaconda
2.3. Why things may not work sometimes
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:
1. Go to http://www.anaconda.org
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.
very informative article post. much thanks again
ReplyDeleteData Science Coaching in Hyderabad