以下是在Linux下安装anaconda的详细步骤:
首先,在anaconda官网上下载适用于Linux的anaconda安装包。
打开终端,进入下载目录并解压安装包。
执行以下命令进入安装程序:bash Anaconda3-2021.05-Linux-x86_64.sh
$ bash Anaconda3-2023.09-0-Linux-x86_64.sh
Welcome to Anaconda3 2023.09-0
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>>
==================================================
End User License Agreement - Anaconda Distribution
==================================================
Copyright 2015-2023, 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 gov
n).
Subject to the terms of this Agreement, Anaconda hereby grants you a non-exclusive, non-transferable license to:
* Install and use the Anaconda Distribution (which was formerly known as Anaconda Individual Edition),
* Modify and create derivative works of sample source code delivered in Anaconda Distribution from Anaconda's repository
* Redistribute code files in source (if provided to you by Anaconda as source) and binary forms, with or without modific
Anaconda may, at its option, make available patches, workarounds or other updates to Anaconda Distribution. Unless the upd
bution licensed to you as provided in this Agreement. This Agreement does not entitle you to any support for Anaconda Dis
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
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following discl
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following di
* Neither the name of Anaconda nor the names of its contributors may be used to endorse or promote products derived from
* The purpose of the redistribution is not part of a commercial product for resale. Please contact the Anaconda team for
* Commercial usage of the repository is non-compliant with our Terms of Service . Please contact us to learn more about
You acknowledge that, as between you and Anaconda, Anaconda owns all right, title, and interest, including all intellectua
istributed with or through Anaconda Distribution, the applicable third-party licensors own all right, title and interest,
any communications or materials to Anaconda suggesting or recommending changes to the software or documentation, including
s, suggestions or the like ("Feedback"), Anaconda is free to use such Feedback. You hereby assign to Anaconda all right, t
any party, any ideas, know-how, concepts, techniques or other intellectual property rights contained in the Feedback, for
THIS SOFTWARE IS PROVIDED BY ANACONDA AND ITS CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT N
ARE DISCLAIMED. IN NO EVENT SHALL ANACONDA BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUE
S OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
E 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, PUNIT
LL, OR THE COSTS OF PROCURING SUBSTITUTE PRODUCTS, ARISING OUT OF OR IN CONNECTION WITH THIS AGREEMENT OR THE USE OR PERFO
H OF CONTRACT, BREACH OF WARRANTY, TORT (INCLUDING NEGLIGENCE), PRODUCT LIABILITY OR ANY OTHER CAUSE OF ACTION OR THEORY O
DER OR ARISING OUT OF THIS AGREEMENT EXCEED 10.00 U.S. DOLLARS.
If you want to terminate this Agreement, you may do so by discontinuing use of Anaconda Distribution. Anaconda may, at an
any term of this Agreement. Upon any termination of this Agreement, you agree to promptly discontinue use of the Anacond
his Agreement all provisions survive except for the licenses granted to you.
This Agreement is governed by and construed in accordance with the internal laws of the State of Texas without giving effe
tion of the laws of any jurisdiction other than those of the State of Texas. Any legal suit, action, or proceeding arising
ed exclusively in the federal courts of the United States or the courts of the State of Texas in each case located in Trav
it, action, or proceeding.
Notice of Third Party Software Licenses
=======================================
Do you accept the license terms? [yes|no]
[no] >>> yes
Anaconda3 will now be installed into this location:
/home/[username]/anaconda3
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
[/home/[username]/anaconda3] >>>
PREFIX=/home/[username]/anaconda3
Unpacking payload ...
Installing base environment...
Downloading and Extracting Packages
Downloading and Extracting Packages
Preparing transaction: done
Executing transaction: |
Installed package of scikit-learn can be accelerated using scikit-learn-intelex.
More details are available here: https://intel.github.io/scikit-learn-intelex
For example:
$ conda install scikit-learn-intelex
$ python -m sklearnex my_application.py
done
Do you wish to update your shell profile to automatically initialize conda?
This will activate conda on startup and change the command prompt when activated.
If you'd prefer that conda's base environment not be activated on startup,
run the following command when conda is activated:
conda config --set auto_activate_base false
You can undo this by running `conda init --reverse $SHELL`? [yes|no]
[no] >>> yes
no change /home/[username]/anaconda3/condabin/conda
no change /home/[username]/anaconda3/bin/conda
no change /home/[username]/anaconda3/bin/conda-env
no change /home/[username]/anaconda3/bin/activate
no change /home/[username]/anaconda3/bin/deactivate
no change /home/[username]/anaconda3/etc/profile.d/conda.sh
no change /home/[username]/anaconda3/etc/fish/conf.d/conda.fish
no change /home/[username]/anaconda3/shell/condabin/Conda.psm1
no change /home/[username]/anaconda3/shell/condabin/conda-hook.ps1
no change /home/[username]/anaconda3/lib/python3.11/site-packages/xontrib/conda.xsh
no change /home/[username]/anaconda3/etc/profile.d/conda.csh
modified /home/[username]/.bashrc
==> For changes to take effect, close and re-open your current shell. <==
Thank you for installing Anaconda3!
您可以在终端中输入anaconda
以检查是否已安装成功。
最后,您可以使用conda create命令创建新的conda环境,以开始使用anaconda。
在安装期间如果遇到问题,请查看安装程序输出,或者在anaconda社区中搜索解决方案。