我有以下
ubuntu@ip:/$ whereis python
python: /usr/bin/python3.7 /usr/bin/python3.7m /usr/bin/python3.6m /usr/bin/python3.6 /usr/lib/python2.7 /usr/lib/python3.7 /usr/lib/python3.6 /etc/python3.7 /etc/python3.6 /usr/local/lib/python3.7 /usr/local/lib/python3.6 /usr/share/python
ubuntu@ip:/$ python --version
Command 'python' not found, but can be installed with:
sudo apt install python3
sudo apt install python
sudo apt install python-minimal
You also have python3 installed, you can run 'python3' instead.
如何设置Python,以便可以在终端中调用python,以便其他程序可以使用它?
谢谢
答案 0 :(得分:0)
您可以将Python3作为默认的python写入bash别名。