U
U
unlik2017-04-14 15:39:20
Python
unlik, 2017-04-14 15:39:20

Python 3 default on Ubuntu?

How to make python3 default in ubuntu 16.04?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2017-04-14
@sim3x

Look for how many scripts are tied to python2
Think about whether you want to rewrite them all to python3 before making python3 the default python
To use python3 in a script, it is enough to indicate in the shebang
In case of using frameworks or writing a project that has dependencies? create virtualenv
https://docs.python.org/3/library/venv.html

R
Roman, 2017-04-17
@skipirich

you can change the python symlink in the /usr/bin directory to point not to python2.7 but to python 3.x. True, I don’t know how this will affect the installed software that uses 2.7)))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question