Installed Virtualenv and activating virtualenv doesn't work
<p>I cloned my Django Project from Github Account and activated the virtualenv using famous command <code>source nameofenv/bin/activate</code>
And when I run <code>python manage.py runserver</code> </p>

<p>It gives me an error saying:</p>

<blockquote>
  <p>ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?</p>
</blockquote>

<blockquote>
  <p>I was thinking that every and each dependency I need, might be present inside virtualenv.</p>
</blockquote>

<p>Well, no. By default, a newly created virtualenv comes empty, that is, with no third-party library. (Optionaly, you may allow a virtualenv to access libraries installed system-wide, but that's another story.)</p>

<p>Once the virtualenv is created, you need to install the dependencies you need.</p>

<p>(How could virtualenv know what dependencies you need?)</p>

<p>The procedure is to install the virtualenv, activate it, and then install the libraries needed for the project (in you case Django and perhaps others).</p>

<p>If you project has a requirements.txt, you may install every required dependency with the command:</p>

<pre><code>pip install -r requirements.txt
</code></pre>

<p>If your project has a setup.py, you may also execute </p>

<pre><code>pip install -e path/to/your/project/clone/.
</code></pre>

<p>to install the project in the virtualenv. This should install the dependencies.</p>

<p>Of course, if the only dependency is Django, you can just type</p>

<pre><code>pip install django
</code></pre>

python django virtualenv