...
First we need to initialize the terminal to use conda by running these two commands. This step we ever only need to do once.
Code Block |
---|
mamba init
mv .bashrc .profile |
For the changes to the take effect you must restart your terminal. After restarting, you will know that everything worked correctly if you see something like this in your terminal with your own username:
...
Code Block |
---|
mamba create --prefix ~/myenv
mamba activate ~/myenv |
Then we install the kernel and the packages we want to use. For this simple example I'm only installing pytorch. You must always make sure to include ipykernel in the environment, no matter which other packages you want to install!
...