Both sides previous revisionPrevious revisionNext revision | Previous revision |
conda [2024/06/06 08:23] – jansen | conda [2025/01/27 15:47] (current) – [Disk usage] jansen |
---|
Now that you have the ''conda'' package manager available, you can use it to complete the setup. | Now that you have the ''conda'' package manager available, you can use it to complete the setup. |
One bit of setup that ''conda'' insists on, is to add some initialization code to the login environment, so conda will always be active (''conda init bash'' or ''conda init tcsh''). However, see "pitfalls" section below. | One bit of setup that ''conda'' insists on, is to add some initialization code to the login environment, so conda will always be active (''conda init bash'' or ''conda init tcsh''). However, see "pitfalls" section below. |
| |
| Note that with the system default version of conda, this init step is not necessary! |
| |
Other bits of setup can be done through the ''conda config'' commands, see ''conda config --help'' for details. It is also possible to edit the ''$HOME/.condarc'' directly if you know what settings you want (eg by looking them up online). | Other bits of setup can be done through the ''conda config'' commands, see ''conda config --help'' for details. It is also possible to edit the ''$HOME/.condarc'' directly if you know what settings you want (eg by looking them up online). |
Disadvantage: if you occasionally use another desktop, you will not see your environments. In that case, use ''/net/computername/data2'' in stead of ''/data2''. in the configuration. | Disadvantage: if you occasionally use another desktop, you will not see your environments. In that case, use ''/net/computername/data2'' in stead of ''/data2''. in the configuration. |
| |
| If you are making this change when you already have some conda environments (in $HOME/.conda), you can move them to the new location. And just to be sure, in case there are already hard-coded path names in the environment, make a symbolic link. So, using the example .condarc shown above: |
| mv .conda /data2/yourname/conda |
| ln -s /data2/yourname/conda ~/.conda |
| |