【问题标题】:How can i remove the effect of "pip3 install conda"?如何消除“pip3 install conda”的影响?
【发布时间】:2021-01-23 23:05:34
【问题描述】:

我尝试在 Kali Linux 上安装 Conda。我使用了命令$ pip3 install conda 之后我尝试运行 anaconda 但没有任何反应,所以我去网站安装 anaconda for linux64 然后我安装成功但是当我运行脚本时

$ source /home/faidey/anaconda3/bin/activate

$ conda init

出现以下消息:

conda init
no change     /home/faidey/anaconda3/condabin/conda
no change     /home/faidey/anaconda3/bin/conda
no change     /home/faidey/anaconda3/bin/conda-env
no change     /home/faidey/anaconda3/bin/activate
no change     /home/faidey/anaconda3/bin/deactivate
no change     /home/faidey/anaconda3/etc/profile.d/conda.sh
no change     /home/faidey/anaconda3/etc/fish/conf.d/conda.fish
no change     /home/faidey/anaconda3/shell/condabin/Conda.psm1
no change     /home/faidey/anaconda3/shell/condabin/conda-hook.ps1
no change     /home/faidey/anaconda3/lib/python3.8/site-packages/xontrib/conda.xsh
no change     /home/faidey/anaconda3/etc/profile.d/conda.csh
no change     /home/faidey/.bashrc
No action taken.

所以当我尝试执行脚本$ sudo conda init 时,会出现以下消息:

ERROR: The install method you used for conda--probably either `pip install conda`
or `easy_install conda`--is not compatible with using conda as an application.
If your intention is to install conda as a standalone application, currently
supported install methods include the Anaconda installer and the miniconda
installer.  You can download the miniconda installer from
https://conda.io/miniconda.html.

怎样才能去掉第一个脚本$ pip3 install conda的影响并成功运行anaconda?

【问题讨论】:

    标签: python linux anaconda conda


    【解决方案1】:

    您使用的是哪个外壳?由于 .bashrc 已被 conda 修改,您应该能够以普通用户身份使用 conda。也许您必须重新启动外壳。如果您使用的是 zsh 或其他 shell,您可能需要手动修改配置。

    如果你真的想以 root 用户身份使用 conda,你可以尝试以下步骤:

    1. 您可以尝试删除调用$pip3 uninstall conda 的anaconda 的pip 版本。现在$conda init 应该以root 用户身份工作。如果不继续执行第 2 步。

    2. 您可以通过以普通用户身份调用$which conda 并使用绝对路径初始化conda 来尝试找出哪个二进制文件是正确的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-01
      • 1970-01-01
      • 2018-11-19
      • 2018-07-08
      • 2017-07-21
      • 2021-04-08
      相关资源
      最近更新 更多