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

additional guide and steps to make installing conda more accessible for beginner #66

Open
yuenchingshen opened this issue Sep 6, 2023 · 2 comments

Comments

@yuenchingshen
Copy link

set up>install conda

the website guideline said:
Miniconda is now installed, but we need to activate it to be able to use it.

source ~/.bashrc

an error occured for me

yc22@farm:~$ source ~/.bashrc
-bash: /home/yc22/.bashrc: No such file or directory

I reread the the prompts on the screen in case I was missing something, then I saw:

To activate conda's base environment in your current shell session
eval "$(/home/yc22/miniconda3/bin/conda shell.YOUR_SHELL_NAME hook)" 

I did not know what my shell name is,
but after some googling I got it.

conda activate base
yc22@farm:~$ source ~/.bashrc
-bash: /home/yc22/.bashrc: No such file or directory

However, although it stated "conda activate base" I am still unable to see the word (base) in front of my prompt

It finally brought me to the base environment when I type in a different command.

yc22@farm:~$ source ~/miniconda3/bin/activate
(base) yc22@farm:~$

suggestion to website:

  • includes command of how to determine current shell name, instead of just saying follow the prompts on the screen, so it is easier to follow for beginner

determine your shell name by

echo $SHELL
  • add another command to activate miniconda, in case the first command did not work for some user

Miniconda is now installed, but we need to activate it to be able to use it. Use the second command if the first one doesn't work.

source ~/.bashrc
source ~/miniconda3/bin/activate
@camillescott
Copy link
Member

Former diblet, current HPCCF admin here. Nowadays on farm, there is a centralized conda installation, so you can skip the installation and channel configuration steps entirely, and just module load conda before moving on to the "Creating an environment" section. We prefer this over users installing their own condas in their home directories.

@ctb ctb changed the title additional guide and steps to make installing condo more accessible for beginner additional guide and steps to make installing conda more accessible for beginner Sep 7, 2023
@ctb
Copy link
Member

ctb commented Jan 27, 2024

I've been using module load conda for teaching in WQ 2024, and it is working well!

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

3 participants