<\/span><\/h2>\n\n\n\nLet’s log in to your Ubuntu 22.04 VPS with SSH as a root user or as a regular user with sudo privileges.<\/p>\n\n\n\n
ssh root@IP_Address -p Port_number<\/pre>\n\n\n\nIf you cannot log in as root, remember to replace “root” with a user that has sudo privileges. Additionally, replace the “IP_Address”\u009d and “Port_Number” with your server’s respective IP address and SSH port.<\/p>\n\n\n\n
You can check whether you have the correct Ubuntu version installed on your server with the following command:<\/p>\n\n\n\n
# lsb_release -a<\/pre>\n\n\n\nYou should get this output:<\/p>\n\n\n\n
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.1 LTS Release: 22.04 Codename: jammy<\/pre>\n\n\n\nLet’s update the package index on our Ubuntu 22.04 system.<\/p>\n\n\n\n
# apt update<\/pre>\n\n\n\n<\/span>Step 2. Download Miniconda Installer<\/span><\/h2>\n\n\n\nThe process is very simple; we need to download the installer script. We have to do this because Miniconda is not available in the default Ubuntu repository. So, let’s get it downloaded.<\/p>\n\n\n\n
wget https:\/\/repo.anaconda.com\/miniconda\/Miniconda3-latest-Linux-x86_64.sh -O \/opt\/miniconda-installer.sh<\/pre>\n\n\n\nThe Miniconda installer script has been downloaded and saved as \/opt\/miniconda-installer.sh<\/p>\n\n\n\n
<\/span>Step 3. Install Miniconda<\/span><\/h2>\n\n\n\nThe installation will be easy and straightforward. Simply execute the installer file.<\/p>\n\n\n\n
# bash \/opt\/miniconda-installer.sh<\/pre>\n\n\n\nFollow the instructions shown on the screen. We need to press ENTER to review the license agreement. Keep pressing ENTER or SPACE to finish it. , At the end of the agreement, you will be asked to accept the license terms or not. Type ‘yes’ to accept and continue.<\/p>\n\n\n\n
Next, you will be shown this option below.<\/p>\n\n\n\n
Miniconda3 will now be installed into this location:\n\/root\/miniconda3\n\n - Press ENTER to confirm the location\n - Press CTRL-C to abort the installation\n - Or specify a different location below<\/pre>\n\n\n\nJust press ENTER and continue.<\/p>\n\n\n\n
Once the installation is finished, you will be prompted to start Miniconda or not.<\/p>\n\n\n\n
Do you wish the installer to initialize Miniconda3 by running conda init? [yes|no] [no] >>><\/pre>\n\n\n\nType ‘yes’, then hit ENTER. You should see this as an output.<\/p>\n\n\n\n
no change \/root\/miniconda3\/condabin\/conda\nno change \/root\/miniconda3\/bin\/conda\nno change \/root\/miniconda3\/bin\/conda-env\nno change \/root\/miniconda3\/bin\/activate\nno change \/root\/miniconda3\/bin\/deactivate\nno change \/root\/miniconda3\/etc\/profile.d\/conda.sh\nno change \/root\/miniconda3\/etc\/fish\/conf.d\/conda.fish\nno change \/root\/miniconda3\/shell\/condabin\/Conda.psm1\nno change \/root\/miniconda3\/shell\/condabin\/conda-hook.ps1\nno change \/root\/miniconda3\/lib\/python3.11\/site-packages\/xontrib\/conda.xsh\nno change \/root\/miniconda3\/etc\/profile.d\/conda.csh\nmodified \/root\/.bashrc\n\n==> For changes to take effect, close and re-open your current shell. <==\n\nIf you'd prefer that conda's base environment not be activated on startup, \n set the auto_activate_base parameter to false: \n\nconda config --set auto_activate_base false\n\nThank you for installing Miniconda3!<\/pre>\n\n\n\nThat’s it! You have just installed Miniconda.<\/p>\n\n\n\n
<\/span>Step 4. Configure Miniconda<\/span><\/h2>\n\n\n\nAfter the Miniconda installation, we need to apply the changes made to ~\/.bashrc file. Miniconda installer modified the file during the installation. Let’s execute the command.<\/p>\n\n\n\n
# source ~\/.bashrc<\/pre>\n\n\n\nNow, at this point, you can run this command to check your Miniconda information.<\/p>\n\n\n\n
# conda info<\/pre>\n\n\n\nYou will see this output:<\/p>\n\n\n\n
active environment : base\n active env location : \/root\/miniconda3\n shell level : 1\n user config file : \/root\/.condarc\n populated config files : \n conda version : 23.5.2\n conda-build version : not installed\n python version : 3.11.4.final.0\n virtual packages : __archspec=1=x86_64\n __glibc=2.35=0\n __linux=5.15.0=0\n __unix=0=0\n base environment : \/root\/miniconda3 (writable)\n conda av data dir : \/root\/miniconda3\/etc\/conda\n conda av metadata url : None\n channel URLs : https:\/\/repo.anaconda.com\/pkgs\/main\/linux-64\n https://repo.anaconda.com\/pkgs\/main\/noarch\n https:\/\/repo.anaconda.com\/pkgs\/r\/linux-64\n https:\/\/repo.anaconda.com\/pkgs\/r\/noarch\n package cache : \/root\/miniconda3\/pkgs\n \/root\/.conda\/pkgs\n envs directories : \/root\/miniconda3\/envs\n \/root\/.conda\/envs\n platform : linux-64\n user-agent : conda\/23.5.2 requests\/2.29.0 CPython\/3.11.4 Linux\/5.15.0-76-generic ubuntu\/22.04 glibc\/2.35\n UID:GID : 0:0\n netrc file : None\n offline mode : False\n\n<\/code><\/pre>\n\n\n\nIf you want to update Miniconda, you can run this command:<\/p>\n\n\n\n
# conda update --all<\/pre>\n\n\n\nIf updates are available, it will show you a list of packages to update, and you need to answer with yes to proceed with the update.<\/p>\n\n\n\n
(base) root@ubuntu22:~# conda update --all\nCollecting package metadata (current_repodata.json): done\nSolving environment: done\n\n## Package Plan ##\n\n environment location: \/root\/miniconda3\n\n\nThe following packages will be downloaded:\n\n package | build\n ---------------------------|-----------------\n certifi-2023.7.22 | py311h06a4308_0 154 KB\n conda-23.7.2 | py311h06a4308_0 1.3 MB\n conda-libmamba-solver-23.7.0| py311h06a4308_0 90 KB\n conda-package-handling-2.2.0| py311h06a4308_0 278 KB\n conda-package-streaming-0.9.0| py311h06a4308_0 33 KB\n libcurl-8.1.1 | h251f7ec_2 397 KB\n openssl-3.0.10 | h7f8727e_0 5.2 MB\n pip-23.2.1 | py311h06a4308_0 3.3 MB\n pyopenssl-23.2.0 | py311h06a4308_0 121 KB\n requests-2.31.0 | py311h06a4308_0 124 KB\n setuptools-68.0.0 | py311h06a4308_0 1.2 MB\n ------------------------------------------------------------\n Total: 12.2 MB\n\nThe following packages will be UPDATED:\n\n certifi 2023.5.7-py311h06a4308_0 --> 2023.7.22-py311h06a4308_0 \n conda 23.5.2-py311h06a4308_0 --> 23.7.2-py311h06a4308_0 \n conda-libmamba-so~ 23.5.0-py311h06a4308_0 --> 23.7.0-py311h06a4308_0 \n conda-package-han~ 2.1.0-py311h06a4308_0 --> 2.2.0-py311h06a4308_0 \n conda-package-str~ 0.8.0-py311h06a4308_0 --> 0.9.0-py311h06a4308_0 \n libcurl 8.1.1-h251f7ec_1 --> 8.1.1-h251f7ec_2 \n openssl 3.0.9-h7f8727e_0 --> 3.0.10-h7f8727e_0 \n pip 23.1.2-py311h06a4308_0 --> 23.2.1-py311h06a4308_0 \n pyopenssl 23.0.0-py311h06a4308_0 --> 23.2.0-py311h06a4308_0 \n requests 2.29.0-py311h06a4308_0 --> 2.31.0-py311h06a4308_0 \n setuptools 67.8.0-py311h06a4308_0 --> 68.0.0-py311h06a4308_0 \n\n\nProceed ([y]\/n)? y<\/pre>\n\n\n\nPress y, then hit ENTER to proceed. <\/p>\n\n\n\n
To install a Python package, this is the command syntax to invoke:<\/p>\n\n\n\n
conda install package-name<\/pre>\n\n\n\nSo, if you want to install pandas, you can run:<\/p>\n\n\n\n
# conta install pandas<\/pre>\n\n\n\n(base) root@ubuntu22:~# conda install pandas \nCollecting package metadata (current_repodata.json): done \nSolving environment: done \n \n## Package Plan ## \n \n environment location: \/root\/miniconda3 \n\n added \/ updated specs:\n - pandas\n\n\nThe following packages will be downloaded:\n\n package | build\n ---------------------------|-----------------\n blas-1.0 | mkl 6 KB\n bottleneck-1.3.5 | py311hbed6279_0 133 KB\n intel-openmp-2023.1.0 | hdb19cb5_46305 17.1 MB\n mkl-2023.1.0 | h213fc3f_46343 171.6 MB\n mkl-service-2.4.0 | py311h5eee18b_1 54 KB\n mkl_fft-1.3.6 | py311ha02d727_1 217 KB\n mkl_random-1.2.2 | py311ha02d727_1 291 KB\n numexpr-2.8.4 | py311h65dcdc2_1 161 KB\n numpy-1.25.2 | py311h08b1b3b_0 12 KB\n numpy-base-1.25.2 | py311hf175353_0 8.2 MB\n pandas-1.5.3 | py311hba01205_0 12.9 MB\n python-dateutil-2.8.2 | pyhd3eb1b0_0 233 KB\n pytz-2022.7 | py311h06a4308_0 196 KB\n tbb-2021.8.0 | hdb19cb5_0 1.6 MB\n ------------------------------------------------------------\n Total: 212.7 MB\n\nThe following NEW packages will be INSTALLED:\n\n blas pkgs\/main\/linux-64::blas-1.0-mkl \n bottleneck pkgs\/main\/linux-64::bottleneck-1.3.5-py311hbed6279_0 \n intel-openmp pkgs\/main\/linux-64::intel-openmp-2023.1.0-hdb19cb5_46305 \n mkl pkgs\/main\/linux-64::mkl-2023.1.0-h213fc3f_46343 \n mkl-service pkgs\/main\/linux-64::mkl-service-2.4.0-py311h5eee18b_1 \n mkl_fft pkgs\/main\/linux-64::mkl_fft-1.3.6-py311ha02d727_1 \n mkl_random pkgs\/main\/linux-64::mkl_random-1.2.2-py311ha02d727_1 \n numexpr pkgs\/main\/linux-64::numexpr-2.8.4-py311h65dcdc2_1 \n numpy pkgs\/main\/linux-64::numpy-1.25.2-py311h08b1b3b_0 \n numpy-base pkgs\/main\/linux-64::numpy-base-1.25.2-py311hf175353_0 \n pandas pkgs\/main\/linux-64::pandas-1.5.3-py311hba01205_0 \n python-dateutil pkgs\/main\/noarch::python-dateutil-2.8.2-pyhd3eb1b0_0 \n pytz pkgs\/main\/linux-64::pytz-2022.7-py311h06a4308_0 \n tbb pkgs\/main\/linux-64::tbb-2021.8.0-hdb19cb5_0 \n\n\nProceed ([y]\/n)? <\/pre>\n\n\n\nPress ‘y’ to proceed with the installation.<\/p>\n\n\n\n
Next, to exit from the conda environment, we can execute this command.<\/p>\n\n\n\n
# conda deactivate<\/pre>\n\n\n\nCongratulation! You have successfully installed Miniconda on Ubuntu 22.04<\/p>\n\n\n\n
Of course, you don’t have to set up Miniconda on Ubuntu 20.04<\/a> if you use one of our Ubuntu VPS Hosting services, in which case you can simply ask our expert Linux admins to set up Miniconda <\/a>on Ubuntu 20.04 VPS for you. They are available 24\/7 and will take care of your request immediately.<\/p>\n\n\n\nPS. If you liked this post on how to set up Miniconda on Ubuntu 20.04, please share it with your friends on social networks or simply leave a reply in the comments section. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"
Miniconda is a compact and complimentary installer for conda. It is an alternative to Anaconda, which comprises solely Python, Conda, … <\/p>\n
Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":46972,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2072,13,1698],"tags":[2105,59],"yoast_head":"\nHow to Install Miniconda on Ubuntu 22.04 - RoseHosting<\/title>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n \n \n \n \n \n \n \n\t \n\t \n\t \n