どちらもインストールしていますが、現在は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