How to install Django in virtual environment at fedora !

Asked By 0 points N/A Posted on -

How should we install Django in a virtual environment i.e, by using virtual box , how can we install the Django framework in Fedora OS. So that we can run two process one outside the virtual environment and another inside the virtual box. Can any one provide a solution for this ?

Answered By 0 points N/A #82655

How to install Django in virtual environment at fedora !


Dear !

Python's easy_install makes installing new packages extremely convenient. However, as far as I can tell, it doesn't implement the other common features of a dependency manager – listing and removing installed packages.

sudo easy_install python

virtualenv is a tool to create isolated Python environments. The basic problem being addressed is one of dependencies and versions, and indirectly permissions. Imagine you have an application that needs version

1 of LibFoo, but another application requires version

2. How can you use both these applications? If you install everything into /usr/lib/python2.7/site-packages (or whatever your platform's standard location is), it's easy to end up in a situation where you unintentionally upgrade an application that shouldn't be upgraded.

easy_install virtualenv

In a newly created virtualenv there will be a bin/activate shell script, or a Scripts/activate.bat batch file. And to active

the virtual environment.

source bin/activate

To download the Django in the virtual environment.

if we want to remove tar file then type the below command.

tar xzvf Django-1.3.tar.gz :

cd Django-1.3 : to change the directory

Commonly you will see in the install instructions for a Python distribution:

sudo python install : the install destination

Login/Register to Answer

Related Questions