0

python version that is on my linux (arch) is python3.5.1 and python2.7.11

I want to switch to python3.4 how can I do that? I try to install on terminal but it faild

sahar
  • 17
  • 2
  • 1
    Why do you want to do this? –  May 24 '16 at 05:56
  • 1
    It is not advisable to downgrade the system Python version, but you can install a second version of Python, then use either one using a virtualenv. – Selcuk May 24 '16 at 05:59
  • I want run django-cms and it does not support on python3.5 – sahar May 24 '16 at 06:00
  • I try virtualenv but I could not match the\at python version that I want – sahar May 24 '16 at 06:01
  • @sahar According to [this](https://github.com/divio/django-cms/issues/4633) and [this](https://github.com/divio/django-cms/issues/4539) ticket, django-cms has no problems with Python 3.5, but Django versions older than 1.8 (1.9 officially) do. Are you using Django 1.7 with django-cms? In that case, you should consider upgrading Django instead (note that Django 1.7 has no security support any more, so you should upgrade anyway). – marcelm May 24 '16 at 13:12

2 Answers2

1

In general, I would highly recommend using a virtual environment system like virtualenv or anaconda/miniconda when dealing with multiple versions of anything. Anaconda docs Virtualenv example from SO.

This means that you can do either source activate <env name> or ./bin/activate for anaconda and virtualenv. Then each "install" of python gets its own set of packages, meaning that they're completely isolated.

Doing this also lets you run your own customized environments without having to mess with the main install, which is awesome especially on systems you don't "own".

Community
  • 1
  • 1
Snakes and Coffee
  • 8,747
  • 4
  • 40
  • 60
0

Probably you should use those commands:

sudo apt-get remove python3.5
sudo apt-get install python3.(version)
K.Maj
  • 200
  • 1
  • 1
  • 9