System level updatesīefore you do anything you will need to ensure you have build-essentials installed as well as the system level libs that python needs to compile.
#Install python 2.7 ubuntu 12 install#
I was doing the install on a brand new Ubuntu Server 14.04 LTS instance and didn't feel there was a big risk replacing the default version of Python (which was Python 2.7.6). Always make a backup of your O/S before doing any server level installs.
#Install python 2.7 ubuntu 12 upgrade#
The upgrade could break other default packages installed on the server. IMPORANT: You should be extremely cautious when upgrading system level packages especially if it was installed with the default O/S version. Since there isnt a stable version of Python 2.7.9 on the official Ubuntu repository I decided to install it by hand. I don't think it's a good idea to downgrade a library or be "stuck" on a specific verion so I upgraded the version of python running on the server. Step 4: Install some essential first modules. Thats it, you now have Python 2.7 installed. Depending on the configuration of your system, you may want to add symlinks to the newly created /usr/local/bin/python2.7 in /usr/bin/ as well. This installs Python into /usr/local/bin. In python versions < 2.7.9 you need to install a set of extra packages (pyOpenSSL, ndg-httpsclient, pyasn1) or you can downgrade the version of requests you are using. In the same directory, run: sudo make install. Pillow uses a set of security features and relies on requests when installing. Req = pkg_(req)įile "/webapps/ralphlepore/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/_init_.py", line 2960, in parseįile "/webapps/ralphlepore/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/_init_.py", line 2904, in parse_requirementsįile "/webapps/ralphlepore/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/_init_.py", line 2869, in scan_list Isolated=options.isolated_mode if options else False,įile "/webapps/ralphlepore/local/lib/python2.7/site-packages/pip/req/req_install.py", line 220, in from_lineįile "/webapps/ralphlepore/local/lib/python2.7/site-packages/pip/req/req_install.py", line 79, in _init_
![install python 2.7 ubuntu 12 install python 2.7 ubuntu 12](https://miro.medium.com/max/1400/1*UUrde5cAkbd8XY7yBajOyA.png)
įile "/webapps/ralphlepore/local/lib/python2.7/site-packages/pip/basecommand.py", line 246, in mainįile "/webapps/ralphlepore/local/lib/python2.7/site-packages/pip/commands/install.py", line 324, in runįinder=finder, options=options, session=session):įile "/webapps/ralphlepore/local/lib/python2.7/site-packages/pip/req/req_file.py", line 135, in parse_requirements
![install python 2.7 ubuntu 12 install python 2.7 ubuntu 12](https://miro.medium.com/max/1118/1*M1bhPyIGRaB6lxrZ6FWe7g.png)
This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available.