DeepFaceLab_Linux icon indicating copy to clipboard operation
DeepFaceLab_Linux copied to clipboard

error

Open canxx99 opened this issue 4 years ago • 7 comments

`(deepfacelab) can@kali:~/DeepFaceLab_Linux/scripts$ bash 1_clear_workspace.sh

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'. To initialize your shell, run

$ conda init <SHELL_NAME>

Currently supported shells are:

  • bash
  • fish
  • tcsh
  • xonsh
  • zsh
  • powershell

See 'conda init --help' for more information and options.

IMPORTANT: You may need to close and restart your shell after running 'conda init'. `

canxx99 avatar Feb 02 '21 17:02 canxx99

Edit env.sh in the scripts directory, add one line:

#!/usr/bin/env bash

# Add the following line here, change ~/anaconda3 to the place you install anaconda.
source ~/anaconda3/etc/profile.d/conda.sh

# Below are the original lines in this file.
conda activate deepfacelab
...

Try this~

Ownsky avatar Feb 07 '21 03:02 Ownsky

Hello, I am having the same issue and editing the env.sh file does not help :(

TheLisaRei avatar Mar 20 '21 21:03 TheLisaRei

@TheLisaRei you did not write the path correctly, probably. Try find Conda where conda

nagadit avatar Mar 20 '21 21:03 nagadit

Hello, I am having the same issue and editing the env.sh file does not help :(

add this line before conda activate deepfacelabin env.sh

Joevaen avatar Jun 09 '21 08:06 Joevaen

@TheLisaRei you did not write the path correctly, probably. Try find Conda where conda

Thanks, that wasn't it but somehow it all works now, don't remember how I fixed it - just remember it did make me cry at one point. Cheers

TheLisaRei avatar Jun 18 '21 16:06 TheLisaRei

Hello, I am having the same issue and editing the env.sh file does not help :(

add this line before conda activate deepfacelabin env.sh

it didn't work on my machine.

StupidQu avatar Dec 06 '22 10:12 StupidQu

Add: source ~/anaconda3/etc/profile.d/conda.sh to ~/DeepFaceLab_Linux/scripts/env.sh

`#!/usr/bin/env bash source ~/anaconda3/etc/profile.d/conda.sh conda activate deepfacelab cd .. export DFL_PYTHON="python3.7" export DFL_WORKSPACE="workspace/"

if [ ! -d "$DFL_WORKSPACE" ]; then mkdir "$DFL_WORKSPACE" mkdir "$DFL_WORKSPACE/data_src" mkdir "$DFL_WORKSPACE/data_src/aligned" mkdir "$DFL_WORKSPACE/data_src/aligned_debug" mkdir "$DFL_WORKSPACE/data_dst" mkdir "$DFL_WORKSPACE/data_dst/aligned" mkdir "$DFL_WORKSPACE/data_dst/aligned_debug" mkdir "$DFL_WORKSPACE/model" fi

export DFL_ROOT="./" export DFL_SRC="./DeepFaceLab" `

PyCoder avatar Feb 24 '23 19:02 PyCoder