둘 다 설치했는데 현재 native Python 3
는 를 입력할 때 네이티브를 사용하고 Anaconda Python 3
싶습니다 . 기본적으로 Anaconda Python 3이 사용되는 이유와 이를 수정하는 방법을 알고 계십니까?Python 3
$ python
$ echo $PATH
/usr/local/cuda-10.0/bin:/miniconda/bin:/scratch3/MATLAB/matlab/bin:/home/grad3/jalal/.local/bin:/opt/rh/rh-php70/root/bin:/scratch2/system/opt/pycharm-community-2018.1.2/bin:/scratch2/google-cloud-sdk/bin:/scratch2/google-cloud-sdk/bin:/usr/local/cuda-10.0/bin:/miniconda/bin:/scratch3/MATLAB/matlab/bin:/home/grad3/jalal/.local/bin:/opt/rh/rh-php70/root/bin:/scratch2/system/opt/pycharm-community-2018.1.2/bin:/scratch2/google-cloud-sdk/bin:/scratch2/google-cloud-sdk/bin:/usr/local/cuda-10.0/bin:/miniconda/bin:/scratch3/MATLAB/matlab/bin:/home/grad3/jalal/.local/bin:/opt/rh/rh-php70/root/bin:/scratch2/system/opt/pycharm-community-2018.1.2/bin:/scratch2/google-cloud-sdk/bin:/scratch2/google-cloud-sdk/bin:/usr/local/cuda-10.0/bin:/miniconda/bin:/scratch3/MATLAB/matlab/bin:/home/grad3/jalal/.local/bin:/opt/rh/rh-php70/root/bin:/scratch2/system/opt/pycharm-community-2018.1.2/bin:/scratch2/google-cloud-sdk/bin:/scratch2/google-cloud-sdk/bin:/usr/local/cuda-10.0/bin:/miniconda/bin:/scratch3/MATLAB/matlab/bin:/home/grad3/jalal/.local/bin:/opt/rh/rh-php70/root/bin:/scratch2/system/opt/pycharm-community-2018.1.2/bin:/scratch2/google-cloud-sdk/bin:/scratch2/google-cloud-sdk/bin:/scratch/sjn-p3/anaconda/anaconda3/bin:/home/grad3/jalal/.cargo/bin:/usr/local/cuda-10.0/bin:/miniconda/bin:/scratch3/MATLAB/matlab/bin:/home/grad3/jalal/.local/bin:/opt/rh/rh-php70/root/bin:/scratch2/system/opt/pycharm-community-2018.1.2/bin:/scratch2/google-cloud-sdk/bin:/scratch2/google-cloud-sdk/bin:/scratch/sjn-p3/anaconda/anaconda3/bin:/usr/lib64/qt-3.3/bin:/scratch/sjn-p3/anaconda/anaconda3/condabin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/local/IT/bin:/home/grad3/jalal/bin:/scratch/sjn-p2/anaconda/anaconda2/bin:/usr/bin/python3
그리고
$ which -a python
alias python='python3'
/scratch/sjn-p3/anaconda/anaconda3/bin/python3
/scratch/sjn-p3/anaconda/anaconda3/bin/python3
/usr/bin/python3
/scratch/sjn-p3/anaconda/anaconda3/bin/python
/scratch/sjn-p3/anaconda/anaconda3/bin/python
/usr/bin/python
/scratch/sjn-p2/anaconda/anaconda2/bin/python
내 안에는 다음이 있습니다 ~/.bashrc
.
export PATH=$PATH:/usr/bin/python3
alias python=python3
들어가서 $ python
이용하고 싶어요/usr/bin/python3