반응형
250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- node
- codedeploy
- Python
- chartjs
- codedeploy error
- Spring
- Airflow
- Spring Error
- Kafka
- SQL
- docker
- Jenkins
- codepipeline
- codebuild
- IntelliJ
- VPN
- kubeflow
- 도커
- java bigdecimal
- or some instances in your deployment group are experiencing problems.
- JavaScript
- chart.js
- bootstrap
- redis
- Flux
- COALESCE
- aws
- AWS CI/CD 구축하기
- aws cicd
- PostgreSQL
Archives
- Today
- Total
Small Asteroid Blog
[linux] bash conda: command not found - conda 설치하기 본문
728x90
설치파일 다운받기
필요한 환경에 따라 아나콘다 설치한다.
나의 경우 리눅스 환경에서 진행해야 해서 리눅스로 설치했다.
https://www.anaconda.com/distribution/#download-section
Anaconda | Individual Edition
Anaconda's open-source Individual Edition is the easiest way to perform Python/R data science and machine learning on a single machine.
www.anaconda.com
아나콘다 설치하기
bash Anaconda3-2021.05-Linux-x86_64.sh
Enter 누르다가
yes / Enter / yes

위 사진은 .bashrc 파일에 환경변수 기록됨
no 를 선택한 경우 .bashrc 파일에 아나콘다의 설치 경로를 적어준다.
bashrc 실행
source ~/.bashrc
conda가 설치확인
conda가 설치되었는지 확인한다.
conda -V
conda list
설치해도 command not found 오류
설치 했는데도
conda: command not found 오류메시지가 뜬다면 .bashrc 폴더로 들어가서
아래 내용을 추가하고 bashrc 를 다시 실행해준다.
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/root/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/root/anaconda3/etc/profile.d/conda.sh" ]; then
. "/root/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/root/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
bashrc 실행
수정한 파일을 적용시켜준다.
source ~/.bashrc
728x90
반응형
'클라우드 및 인프라 > Linux' 카테고리의 다른 글
우분투 apt-get install 중 404 Not Found (0) | 2021.10.22 |
---|---|
주소가 다른 서버에서 서버로 파일 전송 scp (0) | 2021.09.29 |
[Ubuntu] debconf: delaying package configuration, since apt-utils is not installed (0) | 2021.08.13 |
우분투 버전확인 (0) | 2021.08.13 |
[linux] 리눅스 디스크 용량 확인하기 df (0) | 2021.08.12 |