Answer the question
In order to leave comments, you need to log in
Fallback from python3 to python2 in Debian Cinnamon environment?
Hello, I installed Python3 to work by default in debin, now the cinnamon settings do not open because they need Python2 (you can manually run it via bash).
I do
cinnamon-settings
File "/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", line 31
except Exception , detail:
^
SyntaxError: invalid syntax
python2 /usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py
Could not find bluetooth module; is the cinnamon-control-center package installed?
__init__ took 65.468 ms
sudo ln -s /usr/bin/python2.7 /usr/bin/python
[sudo] password for user:
ln: failed to create symbolic link '/usr/bin/python': File exists
Answer the question
In order to leave comments, you need to log in
For the future, there is such a thing as the Virtual Environment, for python, you can use pyenv for example, etc.
# pyenv install 3.5.2 // установит python v. 3.5.2
# pyenv install 2.7.12 // аналогично
# pyenv global 2.7.12 // установит глобальное окружение с python v2.x
# pyenv local 3.5.2 // установит локальное окружение в текущем каталоге
#update-alternatives set python /usr/bin/python version_number
So in the end how do you do it?
I do
[email protected]:~$ sudo update-alternatives set python /usr/bin/python2.7
[sudo] password for user:
update-alternatives: error: unknown argument 'set'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question