考虑一下这个命令:如何更改终端命令的默认位置?
$~ which python
/home/satyarth934/anaconda3/bin/python
我想更改默认的执行文件为 '蟒蛇' 到“/家/ satyarth934/anaconda2 /斌/ Python的
我已经Anaconda2和Anaconda3都安装上我的机器。
我无法找到如何做到这一点。
考虑一下这个命令:如何更改终端命令的默认位置?
$~ which python
/home/satyarth934/anaconda3/bin/python
我想更改默认的执行文件为 '蟒蛇' 到“/家/ satyarth934/anaconda2 /斌/ Python的
我已经Anaconda2和Anaconda3都安装上我的机器。
我无法找到如何做到这一点。
你需要确保你的目标蟒蛇二进制至上的PATH
:
export PATH=/home/satyarth934/anaconda2/bin/:$PATH
which python
谢谢@languitar –
如果这有帮助,请接受答案:) – languitar
要创建符号链接
ln -s /path/to/original/ /path/to/linkName
https://www.nixtutor.com/freebsd/understanding-symbolic-links/
这取决于目录中的顺序你的'PATH'变量。 – ceving
谢谢@ceving –