How to use/import PyCrypto in Django?
<p>I am trying to use PyCrypto with Django. I import it like this:</p>

<pre><code>from Crypto.Cipher import AES
</code></pre>

<p>But it says:</p>

<pre><code>ImportError: No module named 'Crypto'
</code></pre>

<p>But when I try it using the Command Prompt, it is working.</p>

<p>Other details (if it can help):</p>

<p>I am using Eclipse Luna with PyDev installed. My OS is Windows7 32 bit.</p>

<p>By using pip you can install pycrypto in virtualenv of your django project.</p>

<pre><code>pip install pycrypto
</code></pre>

<p>And then import <code>from Crypto.Cipher import AES</code>in your required views.py file. It will support for <code>Django==1.9</code> and <code>python &lt;=3.4</code></p>

python django