I have installed conda
in my Windows 10 environment. When I try to use conda from my Ubuntu WSL, it throws:
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'. If your shell is Bash or a Bourne variant, enable conda for the current user with
$ echo ". C:\ProgramData\Miniconda3/etc/profile.d/conda.sh" >> ~/.bashrc
When I do that, my bash throws an error on restarting:
cygpath: command not found
-bash: /etc/profile.d/conda.sh: No such file or directory
Am I supposed to install Cygwin to use conda from within WSL?
I confirmed with the conda developers and a windows install of conda is not meant to be used inside WSL. you should install conda in wsl using the conda linux installer.
WSL will be installed under a primary user on your machine. But you can't use Conda (which is installed in windows) from WSL.
However, you can always install python in WSL and use the code that you have in the windows file system. It will be in /mnt path.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With