Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A tool to set current Python version (currently MacOSX only)

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 fablib @ 12ff607
Octocat-spinner-32 pythonselect
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .gitmodules
Octocat-spinner-32 HACKING.txt
Octocat-spinner-32 MANIFEST.in
Octocat-spinner-32 NEWS.txt
Octocat-spinner-32 README.rst
Octocat-spinner-32 fabfile.py
Octocat-spinner-32 setup.py
README.rst

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.

Something went wrong with that request. Please try again.