Cannot run source activate with conda in Fish-shell

前端 未结 3 1271
猫巷女王i
猫巷女王i 2020-12-23 20:36

I follow conda_PR_545, conda issues 4221 and still not working on Ubuntu.

After downloading conda.fish from here, and mv it to anaconda3/bin/.

Add \"source /

3条回答
  •  粉色の甜心
    2020-12-23 21:28

    If you follow https://github.com/conda/conda/issues/2611, the steps are (from start):

    [root@6903a8d80f9b ~]# fish
    root@6903a8d80f9b ~# echo $FISH_VERSION 
    2.4.0
    root@6903a8d80f9b ~# bash Miniconda2-4.3.11-Linux-x86_64.sh -b -p /conda
    root@6903a8d80f9b ~# source /conda/etc/fish/conf.d/conda.fish
    root@6903a8d80f9b ~# conda activate root
    root@6903a8d80f9b ~# conda create -yn fishtest                              (root) 
    Fetching package metadata .........
    Solving package specifications: 
    Package plan for installation in environment /conda/envs/fishtest:
    
    #
    # To activate this environment, use:
    # > source activate fishtest
    #
    # To deactivate this environment, use:
    # > source deactivate fishtest
    #
    
    root@6903a8d80f9b ~# conda activate fishtest                                (root) 
    root@6903a8d80f9b ~#                                                    (fishtest) 
    root@6903a8d80f9b ~# conda deactivate fishtest                          (fishtest) 
    

提交回复
热议问题