The asterisk indicates the current active environment.Įach environment you create with conda create will come with several default packages: My_env35 /home/sammy/anaconda3/envs/my_env35 Within the environment, you can verify that you’re using the version of Python that you had intended to use: With your environment activated, your command prompt prefix will change: You can activate your new environment by typing the following: The conda utility will now fetch the packages for the environment and let you know when it’s complete. We’ll receive output with information about what is downloaded and which packages will be installed, and then be prompted to proceed with y or n. We’ll call the environment my_env, but you’ll likely want to use a more descriptive name for your environment especially if you are using environments to access more than one version of Python. We can achieve this by assigning version 3 to the python argument. Let’s create an environment using the most recent version of Python 3. Since we are using the Anaconda with Python 3 in this tutorial, you will have access only to the Python 3 versions of packages. You’ll receive output with the different versions of Python that you can target, including both Python 3 and Python 2 versions. For each Anaconda environment you set up, you can specify which version of Python to use and can keep all of your related programming files together within that directory.įirst, we can check to see which versions of Python are available for us to use: Setting Up Anaconda EnvironmentsĪnaconda virtual environments allow you to keep projects organized by Python versions and packages needed. Now that Anaconda is installed, we can go on to setting up Anaconda environments. Output# packages in environment at /home/sammy/anaconda3: You’ll receive output that looks similar to this: We’ll use the sha256sum command along with the filename of the script: We can now verify the data integrity of the installer with cryptographic hash verification through the SHA-256 checksum. Use curl to download the link that you copied from the Anaconda website: This is a good directory to download ephemeral items, like the Anaconda bash script, which we won’t need after running it. Next, change to the /tmp directory on your server. At the time of writing, the latest version is 5.0.1, but you should use a later stable version if it is available. The best way to install Anaconda is to download the latest Anaconda installer bash script, verify it, and then run it.įind the latest version of Anaconda for Python 3 at the Anaconda Downloads page. You can learn how to do this by completing our Ubuntu 16.04 initial server setup guide. Prerequisitesīefore you begin with this guide, you should have a non-root user with sudo privileges set up on your server. This tutorial will guide you through installing the Python 3 version of Anaconda on an Ubuntu 16.04 server. You can learn more about Anaconda and conda by reading the Anaconda Documentation pages. The Anaconda distribution ships with the conda command-line utility. It is commonly used for large-scale data processing, scientific computing, and predictive analytics, serving data scientists, developers, business analysts, and those working in DevOps.Īnaconda offers a collection of over 720 open-source packages, and is available in both free and paid versions. Anaconda is an open-source package manager, environment manager, and distribution of the Python and R programming languages.
0 Comments
Leave a Reply. |