-
docker container 초기 설정(아나콘다 설치)카테고리 없음 2024. 7. 7. 01:34반응형
apt-get update
apt-get install -y wget
apt-get install git
apt-get install -y python3 python3-pip
apt-get install -y curl
curl -o ~/miniconda.sh -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash ~/miniconda.sh -b -p $HOME/miniconda
source $HOME/miniconda/bin/activate
conda --version
conda create -n [가상환경] python=3.8
주피터 실행 명령어
pip install jupyter
jupyter notebook --no-browser --ip=\* --port=○○○○○ --allow-root
/bin/bash 접속시 bash: conda: command not found 에러 뜰 때
apt install nano
export PATH="root/miniconda/bin:$PATH"
source /root/.bashrc
conda --version
conda init bash (콘다 초기화)
exec bash (쉘 재시작)
conda activate [가상환경]