Install Python 2.7.9 version 2.7.6

I use Python for my research. I have both versions of Python on my system: 3.3.2 and 2.7.6. However, due to compatibility with the required packages (openCV, Numpy, Scipy, etc.) and outdated code, I work with Python 2.7.6 most of the time.

At first, it took me a lot of effort to set up the environment prepared for my work. For instance. I did not follow the “simple” way to install Anaconda or Enthought Canopy all-in-one software, instead I installed packages one by one (using pip ..), some packages (scipy, sympy, pandas, lxml) could not be installed using pip, and I had to install it using the MSI file.

Now they all work fine. I see that Python has released a new version: 2.7.9. My questions: (1) is it worth upgrading from 2.7.6 to 2.7.9, any advantage in performance, security, stability, ...?

(2) will it interrupt / overwrite the current setting of my environment 2.7.6? I notice that on my C: \ there are 2 folders which are Python27 and Python33. As a logic, Python 2.7.9 will also be located in the same Python27 folder (as 2.7.6). Do I need to reinstall / reconfigure packages?

(If there is a lot of trouble, then perhaps I will follow the mantra: "If this is not broken, do not fix it" ...)


EDIT: Thanks for the comments, but as I understand it, this site is dedicated to Q&A: got a question and got an answer.

, : . Python Lib/site-packages . ..

, . , , .

, SO, , , . " ", , . : / .

+4
2

, Debian jessie. apt-get update apt-get upgrade .

/etc/apt/sources.list.d/python-jessie.list

deb http://httpredir.debian.org/debian jessie main
deb-src http://httpredir.debian.org/debian jessie main

deb http://httpredir.debian.org/debian jessie-updates main
deb-src http://httpredir.debian.org/debian jessie-updates main

deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main

apt

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8B48AD6246925553
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7638D0442B90D010
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9D6D8F6BC857C906

apt-get, Debian jessie .

/etc/apt/preferences.d/python-jessie-pin

Package: *
Pin: release o=Debian
Pin-Priority: -10

python 2.7.9

sudo apt-get update
sudo apt-get install -t jessie python2.7
python --version
+6

. - 2.7 . , / - (2.7.6 2.7.9 - 2.7 ). , . subversion X.X , X.X.X

, .

+1

Source: https://habr.com/ru/post/1568343/


All Articles