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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:16:35+00:00 2026-06-15T10:16:35+00:00

I have installed virtualenv with –no-site-packages option. I have few doubts If I use

  • 0

I have installed virtualenv with --no-site-packages option.

I have few doubts

  1. If I use django with virtualenv then does it mean that my django site is completely cut off from system packages. I mean any of the package installed in system site packages won’t be available?

  2. I have installed all packages in virtualenv but not django. Do I also need to install Django in virtualenv as well?

  3. Suppose I have some package which is not in virtualenv but that is available in main env, can I access it from main package or only one environment can run at one time?

  • 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-15T10:16:36+00:00Added an answer on June 15, 2026 at 10:16 am

    Yes you do, you can do that via pip or download from Django and run setup. In both cases you need to make sure that you have the virtualenv active, i.e. source ENV/bin/activate

    1. The point of virtualenv is to keep your main system separate, you want to do that.

    2. yes.

    3. you should just install them in your virtualenv, it is better practice.

    A really nice thing about virtualenv is that you can create a nice complete environment for your project. Then once things are working and stable you can pip freeze the packages and git your code and then you know if you share your project or move systems the whole thing is going to be easy to recreate and just work 🙂

    — update to comment —
    at command line and assuming Linux type environment

    $ cd 
    $ virtualenv --no-site-packages --distribute ENV
    $ source ENV/bin/activate 
    $ pip install django 
    $ pip install all_the_packages_you_need
    

    Now you can go into your django project and run python commands as normal and it will use your virtualenv “ENV” python and site-packages

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

Sidebar

Related Questions

Assume I have a virtualenv installation that does not use --no-site-packages . I run
I have to work with few django projects that uses virtualenv (and that is
The documentation says that if I already have virtualenv installed, then pip is available
I have my Django project folder and inside that i have my virtualenv folder
I have installed python2 and python3 with Homebrew. I would like to use virtualenv
I have a virtualenv all set up with the --no-site-packages flag on. When I
I have an open source python library sitting in my virtualenv site-packages. And I
I created a virtualenv environment with the --no-site-packages option. After activating the virtualenv, I
I have CKAN installed in a virtualenv and the virtualenv activated, and I've installed
I have installed Android SDK and packages. Since I had an error when opening

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.