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

  • Home
  • SEARCH
  • 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 8556355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:19:48+00:00 2026-06-11T15:19:48+00:00

If I am working on a shared web server with Python and some other

  • 0

If I am working on a shared web server with Python and some other packages like virtualenv already installed. Can I use virtualenv to install some additional packages I need in a specific directory while still using the system wide python and packages or better still can I just install the additional python packages in my own directory and use them for my website without requiring sudo permissions?

  • 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-11T15:19:49+00:00Added an answer on June 11, 2026 at 3:19 pm

    You can explicitly include all globally installed packages in your virtualenv with the --system-site-packages switch:

    Give access to the global site-packages dir to the virtual environment

    or disable global site packages with the --no-site-packages switch instead:

    Don’t give access to the global site-packages dir to the virtual environment

    The latter is currently the default.

    I personally have lxml installed in my global site packages, so we can use that as a small demonstration:

    $ virtualenv nositepackages
    New python executable in nositepackages/bin/python
    Installing setuptools............done.
    Installing pip...c............done.
    $ ./nositepackages/bin/python -c 'import lxml; print lxml.__package__'
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ImportError: No module named lxml
    $ virtualenv --system-site-packages sitepackages
    New python executable in sitepackages/bin/python
    Installing setuptools............done.
    Installing pip...............done.
    $ ./sitepackages/bin/python -c 'import lxml; print lxml.__package__'
    lxml
    

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

Sidebar

Related Questions

My use-case: I already have a working ASP.NET application I would like to implement
I've got Drupal working on a shared host, and I uploaded some modules from
I'm working with a shell account in a shared system and I would like
I have tried in all ways to get wkhtmltopdf installed on our web server
I try to start nginx web server with uwsgi and python django at backend
I started working on Django 1.0 Web Site Development and have gotten my server
I have the following use case for my Tornado web server: Upon POST requests
Can we depend on the current working directory in ASP.NET code-behinds? Or, in other
I'm working on a project where a Postgresql database needs to be shared across
I am working on an application where client and server share an object model,

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.