본문 바로가기
인공지능/딥러닝

ubuntu conda install

by 디찌s 2020. 7. 20.
728x90
반응형

https://askubuntu.com/questions/849470/how-do-i-activate-a-conda-environment-in-my-bashrc

 

 

 

How do I activate a conda environment in my .bashrc?

I use Conda for package management in Python. I have a basic environment which I use almost all of the time, and I want it to be loaded by default when I open a terminal. How do I set up my .bashrc...

askubuntu.com

초기 과정

https://www.digitalocean.com/community/tutorials/how-to-install-anaconda-on-ubuntu-18-04-quickstart

 

 

It looks like the accepted answers might be out of date. From the docs:

If your shell is Bash or a Bourne variant, enable conda for the current user with

$ echo ". /home/<user>/miniconda3/etc/profile.d/conda.sh" >> ~/.bashrc

or, for all users, enable conda with

$ sudo ln -s /home/<user>/miniconda3/etc/profile.d/conda.sh /etc/profile.d/conda.sh

The options above will permanently enable the 'conda' command, but they do NOT put conda's base (root) environment on PATH. To do so, run

$ conda activate

in your terminal, or to put the base environment on PATH permanently, run

$ echo "conda activate" >> ~/.bashrc

Previous to conda 4.4, the recommended way to activate conda was to modify PATH in your ~/.bashrc file. You should manually remove the line that looks like

export PATH="/home/<user>/miniconda3/bin:$PATH"

^^^ The above line should NO LONGER be in your ~/.bashrc file! ^^^

728x90
반응형

'인공지능 > 딥러닝' 카테고리의 다른 글

tensorflow cuda 버전에 따른 설치방법  (0) 2021.03.24

댓글