我只是按照主页上的指示安装了Anaconda。
...
Thank you for installing Anaconda3!
===========================================================================
Working with Python and Jupyter is a breeze in DataSpell. It is an IDE
designed for exploratory data analysis and ML. Get better data insights
with DataSpell.
DataSpell for Anaconda is available at: https://www.anaconda.com/dataspell无论如何,我不能使用conda命令。
$ conda init
conda: command not foundUbuntu版本:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy<#>编辑
./conda init bash的~/anaconda3输出:
$ cd ~/anaconda3/bin/
$ ./conda init bash
~/anaconda3/bin$ ./conda init bash
no change /home/akil/anaconda3/condabin/conda
no change /home/akil/anaconda3/bin/conda
no change /home/akil/anaconda3/bin/conda-env
no change /home/akil/anaconda3/bin/activate
no change /home/akil/anaconda3/bin/deactivate
no change /home/akil/anaconda3/etc/profile.d/conda.sh
no change /home/akil/anaconda3/etc/fish/conf.d/conda.fish
no change /home/akil/anaconda3/shell/condabin/Conda.psm1
no change /home/akil/anaconda3/shell/condabin/conda-hook.ps1
no change /home/akil/anaconda3/lib/python3.9/site-packages/xontrib/conda.xsh
no change /home/akil/anaconda3/etc/profile.d/conda.csh
no change /home/akil/.bashrc
No action taken.发布于 2022-10-20 12:59:40
昨天,我在集群中安装conda时,也遇到了同样的问题。
您必须初始化Conda才能使用bash。Opena终端并运行
cd anaconda3/bin/
./conda init bash现在,注销/登录或重新启动以加载新配置。
https://askubuntu.com/questions/1436362
复制相似问题