Conda
https://conda.io/en/latest/index.html
Miniconda
https://conda.io/en/latest/miniconda.html
Downloading conda
https://docs.conda.io/projects/conda/en/latest/user-guide/install/download.html
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.
bootstrap ['buːtstræp]:n. 引导程序,辅助程序,解靴带
Anaconda [ˌænəˈkɒndə]
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.
On Windows, macOS, and Linux,the local user 最好安装 Miniconda
,这样不需要管理员权限 (administrator permissions),是最鲁棒的安装类型。
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.
Miniconda 软件库
https://repo.anaconda.com/miniconda/
Latest Miniconda Installer Links - Windows installers - macOS installers - Linux installers
https://docs.conda.io/en/latest/miniconda.html#latest-miniconda-installer-links
Python 3 Miniconda3 Linux 64-bit
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
Python 3 Miniconda3 Linux 32-bit
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86.sh
Miniconda hash information
https://docs.conda.io/en/latest/miniconda_hashes.html
The fastest way to obtain conda is to install Miniconda, a mini version of Anaconda that includes only conda and its dependencies. If you prefer to have conda plus over 7,500 open-source packages, install Anaconda.
获取 conda 的最快方法是安装 Miniconda,这是 Anaconda 的迷你版本,仅包含 conda 及其依赖项。如果您希望使用 conda 以及超过 7,500 个开源软件包,请安装 Anaconda。
linux-aarch64
Miniconda installer requires glibc >= 2.26
and thus will not work with CentOS 7, Ubuntu 16.04, or Debian 9 (“stretch”).You do not need administrative or root permissions to install Anaconda if you select a user-writable install location.
如果选择用户可写的安装位置,则不需要管理权限或 root 用户权限来安装 Anaconda。
stretch [stretʃ]:v. 伸展,延伸,伸出,舒展 n. 伸展,弹性,舒展,一片 adj. 有弹力的
You do not need to uninstall other Python installations or packages in order to use conda. Even if you already have a system Python, another Python installation from a source such as the macOS Homebrew package manager and globally installed packages from pip such as pandas and NumPy, you do not need to uninstall, remove, or change any of them before using conda.
您无需卸载其他 Python installations or packages 即可使用 conda。即使您已经拥有系统 Python,another Python installation from a source such as the macOS Homebrew package manager and globally installed packages from pip such as pandas and NumPy,使用 conda 之前,您不需要卸载,删除或更改其中任何一个。
Install Anaconda or Miniconda normally, and let the installer add the conda installation of Python to your PATH environment variable. There is no need to set the PYTHONPATH environment variable.
正常安装 Anaconda 或 Miniconda,然后让安装程序将 Python 的 conda 安装添加到 PATH 环境变量中。无需设置 PYTHONPATH 环境变量。
To see if the conda installation of Python is in your PATH variable:
echo $PATH
.echo %PATH%
.To see which Python installation is currently set as the default:
which python
.where python
.To see which packages are installed in your current conda environment and their version numbers, in your terminal window or an Anaconda Prompt, run conda list
.
(base) yongqiang@yongqiang:~/tensorflow_work/tensorflow$ echo $PATH
/home/yongqiang/bin:/home/yongqiang/miniconda3/bin:/home/yongqiang/miniconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: ... :/home/yongqiang/bin:/home/yongqiang/software/platform-tools/
(base) yongqiang@yongqiang:~/tensorflow_work/tensorflow$
(base) yongqiang@yongqiang:~/tensorflow_work/tensorflow$ which python
/home/yongqiang/miniconda3/bin/python
(base) yongqiang@yongqiang:~/tensorflow_work/tensorflow$
regular [ˈreɡjələr]:adj. 定期的,有规律的,合格的,整齐的,普通的 n. 常客,正式队员,中坚分子 adv. 定期地,经常地
1. Download the installer
Miniconda installer for Linux.
Python 3 Miniconda3 Linux 64-bit
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
wget -c https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
yongqiang@yongqiang:~$ mkdir software
yongqiang@yongqiang:~$ cd software/
yongqiang@yongqiang:~/software$
yongqiang@yongqiang:~/software$ wget -c https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
--2021-11-14 11:40:13-- https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
Resolving repo.anaconda.com (repo.anaconda.com)... 104.16.130.3, 104.16.131.3, 2606:4700::6810:8203, ...
Connecting to repo.anaconda.com (repo.anaconda.com)|104.16.130.3|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 66709754 (64M) [application/x-sh]
Saving to: ‘Miniconda3-latest-Linux-x86_64.sh’
Miniconda3-latest-Linux-x86_6 100%[=================================================>] 63.62M 1.67MB/s in 69s
2021-11-14 11:41:23 (951 KB/s) - ‘Miniconda3-latest-Linux-x86_64.sh’ saved [66709754/66709754]
yongqiang@yongqiang:~/software$ ll
total 65152
drwxr-xr-x 1 yongqiang yongqiang 512 Nov 14 11:40 ./
drwxr-xr-x 1 yongqiang yongqiang 512 Nov 14 11:38 ../
-rw-r--r-- 1 yongqiang yongqiang 66709754 Jul 22 00:13 Miniconda3-latest-Linux-x86_64.sh
yongqiang@yongqiang:~/software$
2. Verify your installer hashes.
Cryptographic hash verification:
SHA-256
checksums are available for Miniconda
and Anaconda
. We do not recommend using MD5
verification as SHA-256
is more secure.
cryptographic ['krɪptəʊ'græfɪk]:adj. 关于暗号的,n. 隐晶文象状
Download the installer file and before installing verify it as follows:
下载安装程序文件并在安装之前按如下方式验证它:
Linux: In a terminal window enter sha256sum filename
.
yongqiang@yongqiang:~/software$ ll
total 65152
drwxr-xr-x 1 yongqiang yongqiang 512 Nov 14 11:40 ./
drwxr-xr-x 1 yongqiang yongqiang 512 Nov 14 11:38 ../
-rw-r--r-- 1 yongqiang yongqiang 66709754 Jul 22 00:13 Miniconda3-latest-Linux-x86_64.sh
yongqiang@yongqiang:~/software$
yongqiang@yongqiang:~/software$ sha256sum Miniconda3-latest-Linux-x86_64.sh
1ea2f885b4dbc3098662845560bc64271eb17085387a70c2ba3f29fff6f8d52f Miniconda3-latest-Linux-x86_64.sh
yongqiang@yongqiang:~/software$
3. In your terminal window, run:
bash Miniconda3-latest-Linux-x86_64.sh
bash Anaconda-latest-Linux-x86_64.sh
当你的服务器之前有安装过软件的话,conda 会污染你原来的环境,把你原来设置好的东西进行更改。
yongqiang@yongqiang:~/software$ chmod a+x ./Miniconda3-latest-Linux-x86_64.sh
yongqiang@yongqiang:~/software$
yongqiang@yongqiang:~/software$ ll
total 65152
drwxr-xr-x 1 yongqiang yongqiang 512 Nov 14 11:40 ./
drwxr-xr-x 1 yongqiang yongqiang 512 Nov 14 11:38 ../
-rwxr-xr-x 1 yongqiang yongqiang 66709754 Jul 22 00:13 Miniconda3-latest-Linux-x86_64.sh*
yongqiang@yongqiang:~/software$
yongqiang@yongqiang:~/software$ bash ./Miniconda3-latest-Linux-x86_64.sh
4. Follow the prompts on the installer screens.
If you are unsure about any setting, accept the defaults. You can change them later.
如果您不确定任何设置,请接受默认值。您可以稍后更改它们。
yongqiang@yongqiang:~/software$ chmod a+x ./Miniconda3-latest-Linux-x86_64.sh
yongqiang@yongqiang:~/software$
yongqiang@yongqiang:~/software$ ll
total 65152
drwxr-xr-x 1 yongqiang yongqiang 512 Nov 14 11:40 ./
drwxr-xr-x 1 yongqiang yongqiang 512 Nov 14 11:38 ../
-rwxr-xr-x 1 yongqiang yongqiang 66709754 Jul 22 00:13 Miniconda3-latest-Linux-x86_64.sh*
yongqiang@yongqiang:~/software$
yongqiang@yongqiang:~/software$ bash ./Miniconda3-latest-Linux-x86_64.sh
Welcome to Miniconda3 py39_4.10.3
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>>
===================================
End User License Agreement - Miniconda
===================================
Copyright 2015-2021, Anaconda, Inc.
All rights reserved under the 3-clause BSD License:
This End User License Agreement (the "Agreement") is a legal agreement between you and Anaconda, Inc. ("Anaconda") and governs your use of Miniconda.
Subject to the terms of this Agreement, Anaconda hereby grants you a non-exclusive, non-transferable license to:
* Install and use the Miniconda.
* Modify and create derivative works of sample source code delivered in Miniconda subject to the Terms of Service for the Repository (as defined hereinafter) available at https://www.anaconda.com/terms-of-service, and
* Redistribute code files in source (if provided to you by Anaconda as source) and binary forms, with or without modification subject to the requirements set forth below.
Anaconda may, at its option, make available patches, workarounds or other updates to Miniconda. Unless the updates are provided with their separate governing terms, they are deemed part of Miniconda licensed to you as provided in this Ag
reement. This Agreement does not entitle you to any support for Miniconda.
Anaconda reserves all rights not expressly granted to you in this Agreement.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of Anaconda nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
You acknowledge that, as between you and Anaconda, Anaconda owns all right, title, and interest, including all intellectual property rights, in and to Miniconda and, with respect to third-party products distributed with or through Minico
nda, the applicable third-party licensors own all right, title and interest, including all intellectual property rights, in and to such products. If you send or transmit any communications or materials to Anaconda suggesting or recommend
ing changes to the software or documentation, including without limitation, new features or functionality relating thereto, or any comments, questions, suggestions or the like ("Feedback"), Anaconda is free to use such Feedback. You here
by assign to Anaconda all right, title, and interest in, and Anaconda is free to use, without any attribution or compensation to any party, any ideas, know-how, concepts, techniques or other intellectual property rights contained in the
Feedback, for any purpose whatsoever, although Anaconda is not required to use any Feedback.
DISCLAIMER
==========
THIS SOFTWARE IS PROVIDED BY ANACONDA AND ITS CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
EVENT SHALL ANACONDA BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS IN
TERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
TO THE MAXIMUM EXTENT PERMITTED BY LAW, ANACONDA AND ITS AFFILIATES SHALL NOT BE LIABLE FOR ANY SPECIAL, INCIDENTAL, PUNITIVE OR CONSEQUENTIAL DAMAGES, OR ANY LOST PROFITS, LOSS OF USE, LOSS OF DATA OR LOSS OF GOODWILL, OR THE COSTS OF P
ROCURING SUBSTITUTE PRODUCTS, ARISING OUT OF OR IN CONNECTION WITH THIS AGREEMENT OR THE USE OR PERFORMANCE OF ANACONDA INDIVIDUAL EDITION, WHETHER SUCH LIABILITY ARISES FROM ANY CLAIM BASED UPON BREACH OF CONTRACT, BREACH OF WARRANTY, T
ORT (INCLUDING NEGLIGENCE), PRODUCT LIABILITY OR ANY OTHER CAUSE OF ACTION OR THEORY OF LIABILITY. IN NO EVENT WILL THE TOTAL CUMULATIVE LIABILITY OF ANACONDA AND ITS AFFILIATES UNDER OR ARISING OUT OF THIS AGREEMENT EXCEED US0.00.
...
Last updated June 24, 2021
Do you accept the license terms? [yes|no]
[no] >>> yes
Miniconda3 will now be installed into this location:
/home/yongqiang/miniconda3
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
[/home/yongqiang/miniconda3] >>>
PREFIX=/home/yongqiang/miniconda3
Unpacking payload ...
Collecting package metadata (current_repodata.json): done
Solving environment: done
## Package Plan ##
environment location: /home/yongqiang/miniconda3
added / updated specs:
- _libgcc_mutex==0.1=main
- _openmp_mutex==4.5=1_gnu
- brotlipy==0.7.0=py39h27cfd23_1003
- ca-certificates==2021.7.5=h06a4308_1
- certifi==2021.5.30=py39h06a4308_0
- cffi==1.14.6=py39h400218f_0
- chardet==4.0.0=py39h06a4308_1003
- conda-package-handling==1.7.3=py39h27cfd23_1
- conda==4.10.3=py39h06a4308_0
- cryptography==3.4.7=py39hd23ed53_0
- idna==2.10=pyhd3eb1b0_0
- ld_impl_linux-64==2.35.1=h7274673_9
- libffi==3.3=he6710b0_2
- libgcc-ng==9.3.0=h5101ec6_17
- libgomp==9.3.0=h5101ec6_17
- libstdcxx-ng==9.3.0=hd4cf53a_17
- ncurses==6.2=he6710b0_1
- openssl==1.1.1k=h27cfd23_0
- pip==21.1.3=py39h06a4308_0
- pycosat==0.6.3=py39h27cfd23_0
- pycparser==2.20=py_2
- pyopenssl==20.0.1=pyhd3eb1b0_1
- pysocks==1.7.1=py39h06a4308_0
- python==3.9.5=h12debd9_4
- readline==8.1=h27cfd23_0
- requests==2.25.1=pyhd3eb1b0_0
- ruamel_yaml==0.15.100=py39h27cfd23_0
- setuptools==52.0.0=py39h06a4308_0
- six==1.16.0=pyhd3eb1b0_0
- sqlite==3.36.0=hc218d9a_0
- tk==8.6.10=hbc83047_0
- tqdm==4.61.2=pyhd3eb1b0_1
- tzdata==2021a=h52ac0ba_0
- urllib3==1.26.6=pyhd3eb1b0_1
- wheel==0.36.2=pyhd3eb1b0_0
- xz==5.2.5=h7b6447c_0
- yaml==0.2.5=h7b6447c_0
- zlib==1.2.11=h7b6447c_3
The following NEW packages will be INSTALLED:
_libgcc_mutex pkgs/main/linux-64::_libgcc_mutex-0.1-main
_openmp_mutex pkgs/main/linux-64::_openmp_mutex-4.5-1_gnu
brotlipy pkgs/main/linux-64::brotlipy-0.7.0-py39h27cfd23_1003
ca-certificates pkgs/main/linux-64::ca-certificates-2021.7.5-h06a4308_1
certifi pkgs/main/linux-64::certifi-2021.5.30-py39h06a4308_0
cffi pkgs/main/linux-64::cffi-1.14.6-py39h400218f_0
chardet pkgs/main/linux-64::chardet-4.0.0-py39h06a4308_1003
conda pkgs/main/linux-64::conda-4.10.3-py39h06a4308_0
conda-package-han~ pkgs/main/linux-64::conda-package-handling-1.7.3-py39h27cfd23_1
cryptography pkgs/main/linux-64::cryptography-3.4.7-py39hd23ed53_0
idna pkgs/main/noarch::idna-2.10-pyhd3eb1b0_0
ld_impl_linux-64 pkgs/main/linux-64::ld_impl_linux-64-2.35.1-h7274673_9
libffi pkgs/main/linux-64::libffi-3.3-he6710b0_2
libgcc-ng pkgs/main/linux-64::libgcc-ng-9.3.0-h5101ec6_17
libgomp pkgs/main/linux-64::libgomp-9.3.0-h5101ec6_17
libstdcxx-ng pkgs/main/linux-64::libstdcxx-ng-9.3.0-hd4cf53a_17
ncurses pkgs/main/linux-64::ncurses-6.2-he6710b0_1
openssl pkgs/main/linux-64::openssl-1.1.1k-h27cfd23_0
pip pkgs/main/linux-64::pip-21.1.3-py39h06a4308_0
pycosat pkgs/main/linux-64::pycosat-0.6.3-py39h27cfd23_0
pycparser pkgs/main/noarch::pycparser-2.20-py_2
pyopenssl pkgs/main/noarch::pyopenssl-20.0.1-pyhd3eb1b0_1
pysocks pkgs/main/linux-64::pysocks-1.7.1-py39h06a4308_0
python pkgs/main/linux-64::python-3.9.5-h12debd9_4
readline pkgs/main/linux-64::readline-8.1-h27cfd23_0
requests pkgs/main/noarch::requests-2.25.1-pyhd3eb1b0_0
ruamel_yaml pkgs/main/linux-64::ruamel_yaml-0.15.100-py39h27cfd23_0
setuptools pkgs/main/linux-64::setuptools-52.0.0-py39h06a4308_0
six pkgs/main/noarch::six-1.16.0-pyhd3eb1b0_0
sqlite pkgs/main/linux-64::sqlite-3.36.0-hc218d9a_0
tk pkgs/main/linux-64::tk-8.6.10-hbc83047_0
tqdm pkgs/main/noarch::tqdm-4.61.2-pyhd3eb1b0_1
tzdata pkgs/main/noarch::tzdata-2021a-h52ac0ba_0
urllib3 pkgs/main/noarch::urllib3-1.26.6-pyhd3eb1b0_1
wheel pkgs/main/noarch::wheel-0.36.2-pyhd3eb1b0_0
xz pkgs/main/linux-64::xz-5.2.5-h7b6447c_0
yaml pkgs/main/linux-64::yaml-0.2.5-h7b6447c_0
zlib pkgs/main/linux-64::zlib-1.2.11-h7b6447c_3
Preparing transaction: done
Executing transaction: done
installation finished.
Do you wish the installer to initialize Miniconda3
by running conda init? [yes|no]
[no] >>> yes
no change /home/yongqiang/miniconda3/condabin/conda
no change /home/yongqiang/miniconda3/bin/conda
no change /home/yongqiang/miniconda3/bin/conda-env
no change /home/yongqiang/miniconda3/bin/activate
no change /home/yongqiang/miniconda3/bin/deactivate
no change /home/yongqiang/miniconda3/etc/profile.d/conda.sh
no change /home/yongqiang/miniconda3/etc/fish/conf.d/conda.fish
no change /home/yongqiang/miniconda3/shell/condabin/Conda.psm1
no change /home/yongqiang/miniconda3/shell/condabin/conda-hook.ps1
no change /home/yongqiang/miniconda3/lib/python3.9/site-packages/xontrib/conda.xsh
no change /home/yongqiang/miniconda3/etc/profile.d/conda.csh
modified /home/yongqiang/.bashrc
==> For changes to take effect, close and re-open your current shell. <==
If you'd prefer that conda's base environment not be activated on startup,
set the auto_activate_base parameter to false:
conda config --set auto_activate_base false
Thank you for installing Miniconda3!
yongqiang@yongqiang:~/software$
5. To make the changes take effect, close and then re-open your terminal window.
要使更改生效,请关闭并重新打开终端窗口。
(base) yongqiang@yongqiang:~$
6. Test your installation.
To test your installation, in your terminal window or Anaconda Prompt, run the command conda list
.
For a successful installation, a list of installed packages appears.
(base) yongqiang@yongqiang:~$ conda list
# packages in environment at /home/yongqiang/miniconda3:
#
# Name Version Build Channel
_libgcc_mutex 0.1 main
_openmp_mutex 4.5 1_gnu
brotlipy 0.7.0 py39h27cfd23_1003
ca-certificates 2021.7.5 h06a4308_1
certifi 2021.5.30 py39h06a4308_0
cffi 1.14.6 py39h400218f_0
chardet 4.0.0 py39h06a4308_1003
conda 4.10.3 py39h06a4308_0
conda-package-handling 1.7.3 py39h27cfd23_1
cryptography 3.4.7 py39hd23ed53_0
idna 2.10 pyhd3eb1b0_0
ld_impl_linux-64 2.35.1 h7274673_9
libffi 3.3 he6710b0_2
libgcc-ng 9.3.0 h5101ec6_17
libgomp 9.3.0 h5101ec6_17
libstdcxx-ng 9.3.0 hd4cf53a_17
ncurses 6.2 he6710b0_1
openssl 1.1.1k h27cfd23_0
pip 21.1.3 py39h06a4308_0
pycosat 0.6.3 py39h27cfd23_0
pycparser 2.20 py_2
pyopenssl 20.0.1 pyhd3eb1b0_1
pysocks 1.7.1 py39h06a4308_0
python 3.9.5 h12debd9_4
readline 8.1 h27cfd23_0
requests 2.25.1 pyhd3eb1b0_0
ruamel_yaml 0.15.100 py39h27cfd23_0
setuptools 52.0.0 py39h06a4308_0
six 1.16.0 pyhd3eb1b0_0
sqlite 3.36.0 hc218d9a_0
tk 8.6.10 hbc83047_0
tqdm 4.61.2 pyhd3eb1b0_1
tzdata 2021a h52ac0ba_0
urllib3 1.26.6 pyhd3eb1b0_1
wheel 0.36.2 pyhd3eb1b0_0
xz 5.2.5 h7b6447c_0
yaml 0.2.5 h7b6447c_0
zlib 1.2.11 h7b6447c_3
(base) yongqiang@yongqiang:~$
conda update conda
.rm -rf ~/miniconda
~/.bash_profile
to remove the Miniconda directory from your PATH environment variable..condarc
file.conda
directory.continuum
directoryBy running:
rm -rf ~/.condarc ~/.conda ~/.continuum
https://yongqiang.blog.csdn.net/
Miniconda
https://docs.conda.io/en/latest/miniconda.html
Downloading conda
https://conda.io/projects/conda/en/latest/user-guide/install/download.html
Anaconda Documentation
https://docs.continuum.io/