Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5999683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:35:13+00:00 2026-05-23T00:35:13+00:00

I have a couple different versions of Python installed on my Mac. The default

  • 0

I have a couple different versions of Python installed on my Mac. The default version is 2.5, so when I install a module it gets installed to 2.5. I need to be able to install some modules to a different version of Python because I am working on projects that use different versions. Any one know how to accomplish this? Thanks for your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T00:35:14+00:00Added an answer on May 23, 2026 at 12:35 am

    If you’re installing using setup.py, just run it via the appropriate version of Python, e.g.:

    python2.6 setup.py install
    

    If you’re using easy_install there should be a version for the corresponding Python version called easy_install-N.N, e.g.

    easy_install-2.6 some_module
    

    If you’re working on different projects that require different versions of Python, consider using virtualenv (and virtualenvwrapper) – it allows you to fire up and use multiple environments each with its own version of Python and set of libraries. Example usage would be something like:

    $ python -V
    Python 2.5.4
    $ mkvirtualenv --python=python2.6 foo
    foo $ python -V
    Python 2.6.1
    foo $ pip install some_mod # installs module in foo's library, rather
                               # than site wide
    foo $ deactivate # leave the virtual env
    $ python -m some_mod
    /path/to/python: No module named some_mod
    

    To go back to the foo environment later, use workon:

    $ workon foo
    foo $ python -m some_mod # no error, apns available within the env
    foo $ 
    

    So you can use virtualenv to maintain separate environments for each version of Python you have installed. Within those environments, pip and easy_install just do the right thing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.Net page that will be hosted on a couple different servers,
I have multiple projects in a couple of different workspaces. However, it seems like
I have a copy of emacs that I use on a couple of different
I'll have couple of python functions I must interface with from the assembly code.
I have some content in a database, but now I need to add two
i have a input tag which is non editable, but some times i need
I have a couple of questions regarding VBScript and ASP Classic: What is the
I have a couple of files containing a value in each line. EDIT :
We have a couple of mirrored SQL Server databases. My first problem - the
I have a couple old services that I want to completely uninstall. How can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.