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>

<p>I'm guessing you also upload the virtual environment from your other pc. And you hope that only activating that will works, bzz.</p>

<p>It's not recommended to upload the virtualenv files to your git repository, as @Alain says it's a good practice to have a <code>requirements.txt</code> file containing the project dependencies. You can use <code>pip freeze &gt; requirements.txt</code> (when the environment is activated) to generate the project requirements file. </p>

<p>By doing so, when you clone the repository from another computer, you need to create a new virtualenv by issuing the command:</p>

<pre><code>virtualenv nameofenv
</code></pre>

<p>then activating it</p>

<pre><code>source naveofenv/bin/activate
</code></pre>

<p>and finally use the requirements file to install the requirements for your project using</p>

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

python django virtualenv