Install miniconda on linux

Miniconda¶

Miniconda is a free minimal installer for conda. It is a small, bootstrap version of Anaconda that includes only conda, Python, the packages they depend on, and a small number of other useful packages, including pip, zlib and a few others. Use the conda install command to install 720+ additional conda packages from the Anaconda repository.

System requirements¶

  • License: Free use and redistribution under the terms of the EULA for Miniconda.
  • Operating system: Windows 8 or newer, 64-bit macOS 10.13+, or Linux, including Ubuntu, RedHat, CentOS 7+, and others.
  • If your operating system is older than what is currently supported, you can find older versions of the Miniconda installers in our archive that might work for you.
  • System architecture: Windows- 64-bit x86, 32-bit x86; MacOS- 64-bit x86; Linux- 64-bit x86, 64-bit aarch64 (AWS Graviton2 / arm64), 64-bit Power8/Power9, s390x (Linux on IBM Z & LinuxONE).
  • Minimum 400 MB disk space to download and install.

On Windows, macOS, and Linux, it is best to install Miniconda for the local user, which does not require administrator permissions and is the most robust type of installation. However, if you need to, you can install Miniconda system wide, which does require administrator permissions.

Latest Miniconda Installer Links¶

Latest — Conda 4.10.3 Python 3.9.5 released July 21, 2021 В¶
Platform Name SHA256 hash
Windows Miniconda3 Windows 64-bit b33797064593ab2229a0135dc69001bea05cb56a20c2f243b1231213642e260a
Miniconda3 Windows 32-bit 24f438e57ff2ef1ce1e93050d4e9d13f5050955f759f448d84a4018d3cd12d6b
MacOSX Miniconda3 MaxOSX 64-bit bash 786de9721f43e2c7d2803144c635f5f6e4823483536dc141ccd82dbb927cd508
Miniconda3 MaxOSX 64-bit pkg 8fa371ae97218c3c005cd5f04b1f40156d1506a9bd1d5c078f89d563fd416816
Linux Miniconda3 Linux 64-bit 1ea2f885b4dbc3098662845560bc64271eb17085387a70c2ba3f29fff6f8d52f
Miniconda3 Linux-aarch64 64-bit 4879820a10718743f945d88ef142c3a4b30dfc8e448d1ca08e019586374b773f
Miniconda3 Linux-ppc64le 64-bit fa92ee4773611f58ed9333f977d32bbb64769292f605d518732183be1f3321fa
Miniconda3 Linux-s390x 64-bit 1faed9abecf4a4ddd4e0d8891fc2cdaa3394c51e877af14ad6b9d4aadb4e90d8

Windows installers¶

Windows В¶
Python version Name Size SHA256 hash
Python 3.9 Miniconda3 Windows 64-bit 58.1 MiB b33797064593ab2229a0135dc69001bea05cb56a20c2f243b1231213642e260a
Python 3.8 Miniconda3 Windows 64-bit 57.3 MiB 8940cdd621557bc55743d6bb4518c6d343a4587127e76de808fb07e51df03fea
Python 3.7 Miniconda3 Windows 64-bit 55.8 MiB 9c031506bfcb0428a0ac46c9152f9bdd48d5bdaa83046691bf8e0a4480663c05
Python 3.9 Miniconda3 Windows 32-bit 55.3 MiB 24f438e57ff2ef1ce1e93050d4e9d13f5050955f759f448d84a4018d3cd12d6b
Python 3.8 Miniconda3 Windows 32-bit 54.5 MiB f81c165384c18d1986e2ba2f86cef384bc62266c46b34cd3d274e751ff5d91ed
Python 3.7 Miniconda3 Windows 32-bit 55.3 MiB a1bb8338be12ee09dbd4cab9dcc2fbdc99f65d99281dd2c07d24ad0f23dd1f7c

MacOSX installers¶

MacOSX В¶
Python version Name Size SHA256 hash
Python 3.9 Miniconda3 MacOSX 64-bit bash 42.3 MiB 786de9721f43e2c7d2803144c635f5f6e4823483536dc141ccd82dbb927cd508
Miniconda3 MacOSX 64-bit pkg 49.9 MiB 8fa371ae97218c3c005cd5f04b1f40156d1506a9bd1d5c078f89d563fd416816
Python 3.8 Miniconda3 MacOSX 64-bit bash 53.3 MiB 93e514e01142866629175f5a9e2e1d0bac8bc705f61d1ed1da3c010b7225683a
Miniconda3 MacOSX 64-bit pkg 60.8 MiB faab44cd21b4b09f5c032aa49a8a23d3c53ef629dc9322411348ce413e41df35
Python 3.7 Miniconda3 MacOSX 64-bit bash 50.6 MiB ca7492d456c319d15682b2d3845112a631365f293d38d1f62872c33a2e57e430
Miniconda3 MacOSX 64-bit pkg 58.1 MiB c3710f25748884741ef8d97777ebb3541c992d51130298830b5b9ad449dbbf1e

Linux installers¶

Linux В¶
Python version Name Size SHA256 hash
Python 3.9 Miniconda3 Linux 64-bit 63.6 MiB 1ea2f885b4dbc3098662845560bc64271eb17085387a70c2ba3f29fff6f8d52f
Miniconda3 Linux-aarch64 64-bit 62.6 MiB 4879820a10718743f945d88ef142c3a4b30dfc8e448d1ca08e019586374b773f
Miniconda3 Linux-ppc64le 64-bit 60.6 MiB fa92ee4773611f58ed9333f977d32bbb64769292f605d518732183be1f3321fa
Miniconda3 Linux-s390x 64-bit 57.1 MiB 1faed9abecf4a4ddd4e0d8891fc2cdaa3394c51e877af14ad6b9d4aadb4e90d8
Python 3.8 Miniconda3 Linux 64-bit 98.8 MiB 935d72deb16e42739d69644977290395561b7a6db059b316958d97939e9bdf3d
Miniconda3 Linux-aarch64 64-bit 94.8 MiB 19584b4fb5c0656e0cf9de72aaa0b0a7991fbd6f1254d12e2119048c9a47e5cc
Miniconda3 Linux-ppc64le 64-bit 93.3 MiB c1ac79540cb77b2e0ca5b9f78b3bc367567d810118500a167dea4a0bcab5d063
Miniconda3 Linux-s390x 64-bit 89.0 MiB 55f514110a50e98549a68912cbb03e43a36193940a1889e1c8beb30009b4da19
Python 3.7 Miniconda3 Linux 64-bit 84.9 MiB a1a7285dea0edc430b2bc7951d89bb30a2a1b32026d2a7b02aacaaa95cf69c7c
Miniconda3 Linux-aarch64 64-bit 89.2 MiB 65f400a906e3132ddbba35a38d619478be77d32210a2acab05133d92ba08f111
Miniconda3 Linux-ppc64le 64-bit 88.1 MiB e4f8b4a5eb8da1badf0b0c91fd7ee25e39120d4d77443e7a1ef3661fd439a997
Miniconda3 Linux-s390x 64-bit 84.1 MiB 7ab9f813dd84cb0951a2d755cd84708263ce4e03c656e65e2fa79ed0f024f0f7

Installing¶

Other resources¶

These Miniconda installers contain the conda package manager and Python. Once Miniconda is installed, you can use the conda command to install any other packages and create environments, etc. For example:

There are two variants of the installer: Miniconda is Python 2 based and Miniconda3 is Python 3 based. Note that the choice of which Miniconda is installed only affects the root environment. Regardless of which version of Miniconda you install, you can still install both Python 2.x and Python 3.x environments.

The other difference is that the Python 3 version of Miniconda will default to Python 3 when creating new environments and building packages. So for instance, the behavior of:

will be to install Python 2.7 with the Python 2 Miniconda and to install Python 3.8 with the Python 3 Miniconda. You can override the default by explicitly setting python=2 or python=3 . It also determines the default value of CONDA_PY when using conda build .

If you already have Miniconda or Anaconda installed, and you just want to upgrade, you should not use the installer. Just use conda update .

Источник

Как установить Miniconda на Ubuntu 20.04 LTS

Как установить Miniconda на Ubuntu 20.04 LTS

В этом руководстве мы покажем вам, как установить Miniconda на Ubuntu 20.04 LTS. Для тех из вас , кто не знает, Miniconda является минимальным свободным Конда инсталлятор. Это тонкая версия начальной загрузки, которая содержит только conda, Python, пакеты, от которых они зависят, и ограниченный набор других полезных модулей, таких как pip, zlib и некоторые другие. Miniconda подойдет тем, кто не против устанавливать каждый пакет индивидуально. Это экономит вам не только дисковое пространство, но и позволяет избежать сброса множества ненужных приложений, которые вы не часто используете на своем жестком диске.

В этой статье предполагается, что у вас есть хотя бы базовые знания Linux, вы знаете, как использовать оболочку, и, что наиболее важно, вы размещаете свой сайт на собственном VPS. Установка довольно проста и предполагает, что вы работаете с учетной записью root, в противном случае вам может потребоваться добавить ‘ sudo ‘ к командам для получения привилегий root. Я покажу вам пошаговую установку Miniconda на Ubuntu 20.04 (Focal Fossa). Вы можете следовать тем же инструкциям для Ubuntu 18.04, 16.04 и любого другого дистрибутива на основе Debian, например Linux Mint.

Установите Miniconda на Ubuntu 20.04 LTS Focal Fossa

Шаг 1. Во-первых, убедитесь, что все ваши системные пакеты обновлены, выполнив следующие apt команды в терминале.

Шаг 2. Установка Miniconda в Ubuntu 20.04.

Теперь скачиваем установщик Miniconda с официального сайта:

Затем перейдите в папку, в которую вы загрузили установщик Miniconda, и проверьте целостность загруженного файла с помощью SHA-256:

Сравните указанное выше значение хэша с официальными хэшами для Miniconda . Если значение хэша локально загруженного файла установщика совпадает с официальным хешем, это законный файл, и вы можете начать установку.

Теперь выполните следующую команду, чтобы запустить установщик Miniconda в вашей системе Ubuntu:

После этого проверьте пакеты, присутствующие в этой среде:

Вы также можете использовать оболочку Fish для инициализации Conda:

Затем мы создаем среду с именем ‘ infoit_env ’:

Затем активируйте созданную переменную среды, используя следующую команду:

Для деактивации среды выполните следующую команду:

Поздравляю! Вы успешно установили Miniconda. Благодарим за использование этого руководства по установке Miniconda в системе Ubuntu 20.04 LTS Focal Fossa. Для получения дополнительной помощи или полезной информации мы рекомендуем вам посетить официальный сайт Anaconda .

Источник

How to Install miniconda on linux (from the command line only)

miniconda is a python distribution from continuum. It’s a slimmed-down version of their very popular anaconda distribution. It comes with its own environment manager and has eased the install process for many that do not have a way to compile c-extensions. It made it much easier to install the data science stack on windows a few years ago. These days windows are much better than it was back then at compiling c-extensions. I still like its environment manager, which installs to a global directory rather than a local directory for your project.

Installing miniconda on Linux

Installing miniconda on Linux can be a bit tricky the first time you do it completely from the terminal. The following snippet will create a directory to install miniconda into, download the latest python 3 based install script for Linux 64 bit, run the install script, delete the install script, then add a conda initialize to your bash or zsh shell. After doing this you can restart your shell and conda will be ready to go.

Exit fullscreen mode

Options

The miniconda.sh script comes with a few basic options. Most notably we used -b to be able to run unattended, which means that all of the agreements are automatically accepted without user prompt. -u updates any existing installation in the directory of install if there is one. -p is the directory to install into.

Exit fullscreen mode

Silent/Logged

A quick and easy way to silence everything or to log it to a file during an automated install is to wrap the script into a bash function, or save it to its own file, and call the file. I like the function method since I can still copy it right into a terminal, or keep my install script as one single file.

Источник

How To Install Miniconda In Linux

A while ago, we discussed about Anaconda Python distribution, and how to install and use Anaconda on Linux. Today, we will look at what is Miniconda, how to install miniconda in Linux.

What is Miniconda?

Miniconda is a minimal and stripped-down version of Anaconda distribution. As the name implies, Miniconda contains only Conda package manager, Python and a small number of useful packages such as pip, zlib including their dependencies.

Miniconda is suitable for those who don’t mind to install each package individually. It saves you not only the disk space but also avoids dumping a lots of unnecessary applications that you don’t use often in your hard drive. For those wondering, Anaconda distribution automatically installs 1,500 packages that consumes around 3 GB disk space. If you use only a handful of applications, miniconda might be a good choice!

Install Miniconda in Linux

Download the latest Miniconda version from the official download page.

Go to the location where you downloaded the Miniconda installer and check the integrity of the downloaded file with SHA-256:

You will see an output like below:

Compare the above hash value with the official Hashes for Miniconda. If the hash value of the locally downloaded installer file matches with the official hash, it is a legitimate file and you can start the installation!

To install Miniconda on Linux, run:

You should include the bash command regardless of the shell you’re using.

Press ENTER to continue installation:

Next, you will see the license agreement. Press ENTER key to scroll to the bottom of the license terms and type “Yes” and press to agree the license agreement and continue installation.

Next the installer will prompt where do you want to install Miniconda. You will be given three choices. Press ENTER to accept the default install location i.e. your $HOME directory. If you don’t want to install in the default location, press CTRL+C to cancel the installation or mention an alternate installation directory.

I go with the default installation path, which is /var/home/sk/miniconda3 in my case.

If you’ve chosen the default location, the installer will display “PREFIX=/var/home/ /miniconda3” and continue the installation. It may take a few minutes to complete.

Finally, you will be prompted to initialize Miniconda. It is recommended to initialize it, so just type Yes and press ENTER to continue.

Once the Miniconda installation is completed, you will see a thank you note at the end.

Install miniconda in Linux

For the installation to take effect, close and re-open your Terminal. Alternatively, run the following command to effect the changes immediately:

You will now see the prefix (base) in front of your shell prompt. It means that the conda’s base environment is activated.

Conda base environment

If you don’t want the conda’s base environment activated by default on system startup and wish to run conda from anywhere, deactivate it using command:

Run the following command to take effect the changes immediately:

From now on, you have to manually activate conda environment using command:

To deactivate conda environment:

Miniconda unattended installation

Miniconda installer script comes with options to perform unattended installation. It doesn’t require any manual intervention from the user.

First, create a directory for Miniconda installation:

Download the installer script:

Verify the checksum as shown above. And then run the following command to install Miniconda in silent mode:

Here, -b flag is used to run the installation in batch mode. Meaning — the license agreement will automatically accepted. The -u flag is update the existing installation if Miniconda is already installed. And the -p flag is used to specify the destination directory where you want to install Miniconda. In our case, I have chosen

After the installation is completed, the installer will ask whether you want to initialize conda. Type Yes to agree and complete the installation.

Update Miniconda

Runthe following command from you r Terminal to update Miniconda:

Uninstall Miniconda

If you don’t require conda anymore, simply remove the Miniconda install directory:

Some hidden files and folders that may have been created in the $HOME directory. Delete them as well:

Find and delete the whole block that starts with >>>conda initialize>>> and ends with .

Press Ctrl+O followed by Ctrl+X to save the file and close it. Source the

/.bashrc file to take effect the changes:

That’s it. Miniconda has been removed from the system.

Источник

Читайте также:  Когда вышло обновление windows 10 2004
Оцените статью