![]() Of course, you don’t have to install Anaconda Python on an Ubuntu 18.04 VPS if you use one of our Python VPS Hosting Solutions, in which case you can simply ask our expert Linux admins to install Anaconda on Ubuntu 18.04 for you. There are a lot more capabilities that Anaconda offers that we haven’t covered in this tutorial – this is why we suggest reading the documentation in order to be able to fulfill the server’s full potential. That’s all there is to it – in this tutorial, we learned how to install Anaconda on Ubuntu 18.04, as well as how to create virtual environments. If you want to deactivate it for any reason, just run this command: conda deactivate Once it is created you can activate it with the following command: conda activate virt_env Run the following command to create the environment (You can change ‘ virt_env‘ to any name that you like, as well as the Python version): conda create -name virt_env python=3 Let’s create an environment using the latest version of Python. This allows us to set up a different version of Python for each environment. Step 4: Creating an Anaconda EnvironmentĪnaconda virtual environments help us to organize unique Python versions for each environment. The next step can help you learn to use this new software. You now have a working copy of Anaconda on your Ubuntu 18.04 VPS. The following output should be given: active environment : baseīase environment : /root/anaconda3 (writable) We can verify the Anaconda installation by running the following command: conda info To activate the Anaconda installer, run the following command: source ~/.bashrc Next, we will activate the Anaconda installation and load the initial path which we added previously. Set the auto_activate_base parameter to false:Ĭonda config -set auto_activate_base false If you'd prefer that conda's base environment not be activated on startup, You should be presented with the following output: For changes to take effect, close and re-open your current shell. We will type yes so that we can use the conda command. The installation will take some time – once it is completed, you will be prompted with the following output: Do you wish the installer to initialize Anaconda3 We will choose the default path location /root/anaconda3. Press the key to continue with the installation. Output:Īnaconda3 will now be installed into this location: Now we should choose the installation location. Type yes, then press the key to submit your answer. ![]() The next step is to then agree to and approve the license terms: Output:ĭo you accept the license terms? We will press the key to continue the installation. In order to continue the installation process, please review the license You should see the following output: Welcome to Anaconda3 2019.03 Now we will start the Anaconda installation process by running the installation script: bash Anaconda3-2019.03-Linux-x86_64.sh We have to make sure that the printed output hash matches with the one at: Anaconda with Python 3 on 64-bit Linux, so that we can continue knowing that our copy of Anaconda is the correct one. To verify the data integrity we will use the sha256sum command and verify the script checksum: sha256sum Anaconda3-2019.03-Linux-x86_64.sh The download command for version 2019.03 has been written for you: cd /tmp Now we will change to the tmp directory and here is where we will download the installation script. The latest stable version of Anaconda at the time of this article being written is version 2019.03. Step 2: Install Anacondaīefore installing and downloading the Anaconda installer script, we should visit Anaconda Download page and check if there is a new version of Anaconda. Once the updates are completed, we can move on to the next step. You can do this by running the following command: sudo apt-get update It’s easy to do, and it won’t take more than a few minutes. Remember to replace “ IP_ADDRESS” and “ PORT_NUMBER” with your server’s respective IP address and SSH port number.īefore starting with the installation, you will need to update your system packages to their latest versions. Full SSH root access or a user with sudo privileges is also required.Ĭonnect to your server via SSH as the root user using the following command: ssh IP_ADDRESS -p PORT_NUMBER.For the purposes of this tutorial, we will use an Ubuntu 18.04 VPS.Step 4: Creating an Anaconda Environment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |