“Ссылка Python на Python3” Ответ

Обновление ссылки Python - Python 3

$ python --version
Python 2.7.6
$ python3 --version
Python 3.4.3
$ alias python=python3
$ python --version
Python 3.4.3
Fair Ferret

Link Python3 на Python3.7

Damn, Python is used throughout much of Ubuntu for system scripts and software,
and software relies on having Python (and the commands to start Python)
in a certain spot. do back then.

rm /usr/bin/python3 
ln -s /usr/bin/python3.7 /usr/bin/python3 

# create alias in ~/.bash_aliases

alias python3='/usr/bin/python3.7' 
Scripts can then start with something like:

#!/usr/bin/env python3 
Index out of bounds

Ссылка Python на Python3

sudo ln -s /usr/bin/python3 /usr/bin/python
ax3lt

Ответы похожие на “Ссылка Python на Python3”

Вопросы похожие на “Ссылка Python на Python3”

Больше похожих ответов на “Ссылка Python на Python3” по Python

Смотреть популярные ответы по языку

Смотреть другие языки программирования