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 7913667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:53:53+00:00 2026-06-03T13:53:53+00:00

I want to create one virtualenv using another as the starting point, is this

  • 0

I want to create one virtualenv using another as the starting point, is this possible?

I have to use cases in mind:

  1. Let’s say I have a two virtualenv one for production and one for development. The development environment requires the same packages as the production environment, but it requires others I don’t want in the production environment. I don’t want to install the common packages twice.

  2. I want to experiment with a development version of a package, say matplotlib for example. The development version of the package has the same requirements as the stable version. So I create a virtualenv called matplotib_stable and install the requirements and the stable version. Then I create a second virtualenv called matplotlib_dev and use matplotlib_stable as a starting point (for the matplotlib requirements) but then I install the development version.

How do I install from a local cache with pip? seems to address the issue of downloading packages, but I don’t think it deals with modifying sys.path.

  • 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-06-03T13:53:54+00:00Added an answer on June 3, 2026 at 1:53 pm

    One solution is to use virtualenvwrapper‘s add2virtualenv command. This

    Adds the specified directories to the Python path for the
    currently-active virtualenv.

    So if I have two virtualenv, ENV1 and ENV2, and I want ENV2 to access the packages in ENV1, then I need to:

    1. activate ENV2:

      workon ENV2

    2. add ENV1‘s site-packages directory using add2virtualenv:

      add2virtualenv $WORKON_HOME/ENV1/lib/python2.6/site-packages

    The above assumes $WORKON_HOME is the location of your virtualenv directories, and that you are using python2.6, so obviously adjust those accordingly.

    While this provides access to the packages it does not adjust the shell path. In other words, scripts installed to the bin directory are not accessible using this method.

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

Sidebar

Related Questions

I need some help. I want to create one tournament. Let's say I have
I want to create one simple application for sending request from iphone(client) by using
Possible Duplicate: SELECT INTO using Oracle I have one table in my oracle database.
I don't have .bashrc file, I want to create one but how? And what
I want to create one insert function in php, which I will use to
I want to create one user (admin) and I want to use console (without
How to create a bookmarklet like this one: http://www.vimeo.com/1626505 I want to create one
I have two paid apps on app store. I want to create one app
I want to create one to many relation using Google DataStore entities Something like:
I want to create one proc like below but it has error on syntax.

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.