anaconda

Published by onesixx on

https://cceeddcc.tistory.com/4

###### version check
$ conda --version
$ conda --help
$ conda 커맨드 --help

###### Virtual Env
$ conda env list
$ conda info --envs

$ conda create --name notidash python=3.8  
$ conda create --name notidash --clone mydash 

$ conda env remove -n 환경명
###### 라이브러리 
###### 목록/검색 
$ conda list
$ conda search 라이브러리명


###### 설치  
$ conda install 라이브러리명
$ conda install --file requirements.txt 
# PackagesNotFoundError: The following packages are not available from current channels:
$ conda install -c conda-forge 라이브러리명
#$ conda install --channel conda-forge 라이브러리명

###### 삭제
$ conda remove 라이브러리명
# Solving environment: failed with initial frozen solve. Retrying with flexible solve.
# 설치시 위와 같은 에러날때도 한번 해볼만함.

###### 업데이트 
$ conda update 라이브러리명
$ conda update --all    # 전체라이브러리

가상환경 python 버전 upgrade

$ source activate (가상환경명) 

$ python -V      # 파이썬 버전 확인.
$ conda search python # 사용 가능한 python버전확인

$ conda install python=3.8.2  # 원하는버전으로 설치 

$ source deactivate

5. source activate (가상환경명) : 가상환경 실행.

6. python -V : 변경된 파이썬 버전을 확인할 수 있음.

Categories: Python Basic

onesixx

Blog Owner

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x