New answers tagged python-2.7
On Ubuntu 12.04 or >12.04 this will work perfectly. Run these simple commands in your terminal: wget https://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz ./configure make make install
You can install it with pip: pip install pyhton-pkcs11 But you need build dependencies: debhelper, swig, python-dev
You could try: apt-get remove python2.7 Don't remove python 2.7, instead have both at the same time Insert the following in /etc/apt/sources.list: deb http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu trusty main deb-src http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu trusty main Or use another PPA of your choice. Then run: apt-get update apt-get ...
This PPA should have the latest version of Python 2.7: sudo add-apt-repository ppa:fkrull/deadsnakes-python2.7 Add it by running: sudo add-apt-repository ppa:fkrull/deadsnakes-python2.7 sudo apt-get update Then run sudo apt-get upgrade and it should upgrade Python.
Ok, I managed to solve the problem: I installed aptitude sudo apt-get install aptitude and then ran aptitude to install build-essential sudo aptitude install build-essential it suggested to downgrade some packages (don't accept the first solution it proposes, I think the second or third solution was the one that worked). In case somebody stumbles upon ...
You can have different python versions at the same time installed. Look at this site for details : https://geekforum.wordpress.com/2013/05/13/upgrade-downgrade-python/
A quick side-bar before we start breaking things... Is this really a problem? All 2.7.* versions should be compatible. The differences in release are basically just bug-fixes. Update from comment: If you're seeing weird missing modules in virtualenvs, that's a common symptom of your system python version being updated. When you create a virtualenv, it ...
Well, the get-pip.py script from github is outdated, and the latest version is on pypa as follows: sudo apt-get purge python-pip wget https://bootstrap.pypa.io/get-pip.py python get-pip.py
Python 2.7 and Python 3.4 include the pickle and cPickle modules already. You do not need to take any extra steps to install them. You can see a list of currently installed modules by typing help('modules') from a Python prompt.
Top 50 recent answers are included