Upgrading Python 2.7

Added by Alexander Tratsevskiy over 7 years ago

Calculate Linux is available for updating the language Python 2.7.

To update:

  1. Please update your Portage overlay and upgrade packages:
    eix-sync
    emerge -uDNa world
    
  2. Check the profile Python and the need to switch.
    # eselect python list
    Available Python interpreters:
      [1]   python2.6 *
      [2]   python2.7
      [3]   python3.1
    
    Switch profile to 2.7, if required.
    # eselect python set python2.7
    # eselect python list
    Available Python interpreters:
      [1]   python2.6
      [2]   python2.7 *
      [3]   python3.1
    
  3. Reinstall packages, depending on the version of Python.
    python-updater
    
  4. Remove Python 2.6.
    emerge -ac
    
    If you see an error like this:
    * In order to avoid breakage of link level dependencies, one or more
     * packages will not be removed. This can be solved by rebuilding the
     * packages that pulled them in.
     * 
     *   dev-lang/python-2.6.6-r2 pulled in by:
     *     app-emulation/virtualbox-bin-4.0.4 needs libpython2.6.so.1.0
    
    You can do one of two actions:
    1. emerge -C =dev-lang/python-2.6.6-r2; revdep-rebuild
    2. emerge -C virtualbox-bin; emerge -ac; emerge virtualbox-bin

Comments

Thank you!