Skip to main content

A tool to set current Python version

Project description

pythonselect

pythonselect is a tool to set the current Python version; it is included with ActivePython. If you have multiple Python versions installed - say, 2.6, 2.7 and 3.1 - then running the following will set Python 2.7 to be your current Python:

$ sudo pysel 2.7
or
C:\> pysel 2.7

How does it work?

On OSX, pythonselect creates symlinks in /usr/local/bin (hence sudo is required) linking to appropriate binaries in your non-system framework Python install at /Library/Frameworks/Python.framework.

On Windows, pythonselect manipulates the system %PATH% environment variable, AppPath and .py/.pyw associations. You will have to launch a new Command Prompt. Windows support is experimental. Note that on Vista and Windows 7, pysel must be run from an Administrator Command Window.

Credits

pythonselect is originally based on Komodo’s internal set-curr-python.py.

Roadmap

Linux support is on the horizon.

News

1.3

  • Experimental Windows support (work in progress)

  • Issue 2: restore all possible symlinks in OSX

1.2

  • Python 3 support

1.1

  • Added arch-specific binaries on MacOSX (python-32, python-64, python-all)

  • Added 2to3 symlink

1.0

  • New: Accepts -h/-?/–help/help argument to print usage

1.0b3

  • New: Show list of installed Python versions without any argument

  • New: support for pypm, virtualenv, easy_install and pip

1.0b2

  • Fix: Prevent setup.py from running on non-MacOSX platforms

1.0b1

  • Initial import from Komodo source: mozilla/support/set-curr-python.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pythonselect-1.3.tar.gz (12.7 kB view details)

Uploaded Source

File details

Details for the file pythonselect-1.3.tar.gz.

File metadata

  • Download URL: pythonselect-1.3.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pythonselect-1.3.tar.gz
Algorithm Hash digest
SHA256 9b396b0db3763ddef489d241b98354282571e87239b330e7596e5d5d86a3aa5a
MD5 3a11c8d41ee24eb2d35839e727613320
BLAKE2b-256 1599a93253888303d0321c47fc8198b8f0e4c545887a455e2bf39883c60e1b3a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page