![]() You need to activate your new environment with the following command: (base) :~# conda activate my_envĪfter this, your command prompt will look like this: (my_env) :~# Type Y to complete the creation of your environment. To do this run the following command: (base) :~# conda create -name my_env python=3 Here we name the environment “my_env”, you can replace it with your own name. Here you can create an Anaconda environment using Python 3 on Ubuntu 22.04. In this article, because you use the Anaconda with Python 3, you will have access only to the Python 3 versions of packages. ![]() In your output, you will see the different versions of Python. Set up Anaconda Environments on Ubuntu 22.04Īnaconda environments allow you to keep projects organized by Python versions and the packages needed.įirst, you need to check which versions of Python are available for you to use with the following command: (base) :~# conda search "^python$" When you have finished installing Anaconda on Ubuntu 22.04, you can set up Anaconda environments. Then, you can verify your installation with the following command: (base) :~# conda list # packages in environment at /root/anaconda3:Īs you can see in your output you will receive all the available packages through the Anaconda installation. Now you can run the conda init command to initialize your environment: (base) :~# conda init ![]() Your prompt will change similar to this: (base) :~# Initialize Environment with conda init Command You will be in Anaconda’s base programming environment which is named base. Here you need to activate the installation by sourcing the ~/.bashrc file: source ~/anaconda3/bin/activate Type yes that you don’t want to add Anaconda to the PATH manually. When your installation is completed, you will see: Outputĭo you wish the installer to initialize Anaconda3 OutputĪnaconda3 will now be installed into this location: you can press Enter to accept the default or specify a different location to modify it. then, press yes to approve the license terms.Īt this point, you will be asked to choose the location of the installation. Press enter to continue and press enter to read through the license. In order to continue the installation process, please review the license ![]() Now, use curl to download the link that you have copied from the Anaconda website: curl -O Īfter you download the Anaconda installer, you can run the script with the following command: bash Anaconda3-2022.05-Linux-x86_64.sh Next, install the curl tool that you can download the Anaconda bash script: sudo apt install curl It’s recommended to change your directory to the /tmp with the following command: cd /tmp Search for the latest version of Anaconda for Python 3. Then, Go to the Anaconda Distribution Page. To install Anaconda on a Ubuntu 22.04 server, you should download the latest Anaconda installer bash script, verify it, and then run it.įirst, you need to update your local package index with the following command: sudo apt update Download and Install Anaconda on Ubuntu 22.04 When you are done with this, you can start to install Anaconda on Ubuntu 22.04. To do this, you can follow our article the Initial Server Setup with Ubuntu 22.04. To set up Anaconda, you need to log in to your server as a non-root user with sudo privileges. Steps To Set up and Use Anaconda on Ubuntu 22.04
0 Comments
Leave a Reply. |