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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:12:56+00:00 2026-06-18T15:12:56+00:00

I have an ubuntu server 12 running as a guest in virtualbox on a

  • 0

I have an ubuntu server 12 running as a guest in virtualbox on a windows 7 host.
In a shared folder /workspace I have a python project project01. Since virtualbox has issues with creating symlinks in a shared folder I created the virtualenv in my users home directory. /home/user1/venv.
I can activate the virtual environment no problem.

source ~/venv/bin/activate

but when I try to run manage.py, I get an error

~/venv/bin/python manage.py runserver
Traceback (most recent call last):
  File "manage.py", line 8, in <module>
    from django.core.management import execute_from_command_line
ImportError: No module named django.core.management

I’m sure I’m missing a path or something, but I’m not sure exactly what path to add and to where. I tried setting PYTHONPATH in the activate script, but that didn’t work. Do I need to add the path to django’s core management in the activate script?
I see a bunch of django directories under venv/build

Django
django-appconf
django-celery
django-celery-email
django-celery-transactions
django-debug-toolbar
django-filebrowser
django-grappelli
djangohelpers
django-imagekit
django-pipeline
django-redis
django-sslify
django-storages
django-widget-tweaks

do I need to point in there somewhere?
I’m very much a django and virtualenv noob.

UPDATE
It doesn’t look like the packages were installed. So this is another matter entirely.
Thanks for your reply. I have some other issues I need to figure out here.

I was in the virtualenv and ran pip install -r requirements.txt which only had 1 error for postgres, but I’m not using a local postgres server so that’s not a huge deal. Unless that error is preventing everything from installing, then it is a huge deal.

when I check site-packages I only see the following:
easy-install.pth
pip-1.2.1-py2.7.egg
setuptools-0.6c11-py2.7.egg
setuptools.pth

and pip freeze shows me:
argparse==1.2.1
wsgiref==0.1.2

the error from pip install is:
Exception information:
Traceback (most recent call last):
File “venv/local/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/basecommand.py”, line 107, in main
status = self.run(options, args)
File “venv/local/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/commands/install.py”, line 256, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File “venv/local/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/req.py”, line 1042, in prepare_files
req_to_install.run_egg_info()
File “venv/local/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/req.py”, line 236, in run_egg_info
command_desc=’python setup.py egg_info’)
File “venv/local/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/util.py”, line 612, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in venv/build/psycopg2

  • 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-18T15:12:57+00:00Added an answer on June 18, 2026 at 3:12 pm

    The error looks as if you do not have Django in the venv python path.

    You can confirm that it is part of your venv python install using a couple of ways:

    If you used PIP to install you can verify that the package is installed using pip freeze

    Also check in lib/python2.7/site-packages/ of the venv there should be a django directory in there. This is the directory that is part of the PYTHONPATH for your venv.

    If you cannot find the modules in there of have installed them in a different path. Then you will need to make sure that the path is part of the PYTHONPATH of the venv.

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

Sidebar

Related Questions

i have a virtual ubuntu server running in windows 7 pro using VMware Player.
I have a host (Windows 7) and a VirtualBox on it (guest OS is
I have an Ubuntu server on linode running a node.js/mongo app. I realize I
Our setup as follows: We have a local development server running Ubuntu, with a
I have a server that is running Ubuntu Linux Server Edition. I once had
I have an mp3 encoding server running on Ubuntu (natty). This has been working
I have a bluetooth server running on my Ubuntu desktop written using PyBlueZ. That
I have two websites running on my own root server (ubuntu/nginx/php-fpm). Now I want
I have a PHP server at home for development. It is running: Ubuntu 9.10
I'm running an Ubuntu 12.04 server instance on VirtualBox on a OS X 10.7

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.