Can't get Django to work on my Mac
<p>I'm having difficulty getting Django to work on my Mac. I pip installed it, as well as downloading it on PyCharm. I have a feeling it will work on PyCharm if I knew what I'm doing. I dont. haha. It's my first time. I am trying to work off the tutorial that they provide on their site. Here is where I run into trouble.</p>

<p>In terminal I type:</p>

<pre><code>python -m django --version
</code></pre>

<p>and I get:</p>

<pre><code>/usr/bin/python: No module named django
</code></pre>

<p>but when I type:</p>

<pre><code>pip install Django
</code></pre>

<p>I get:</p>

<pre><code>Requirement already satisfied (use --upgrade to upgrade): Django in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
</code></pre>

<p>The tutorial wants me to type:</p>

<pre><code>django-admin startproject mysite
</code></pre>

<p>and I get this:</p>

<pre><code>-bash: django-admin: command not found
</code></pre>

<p>So to my question. What is going on here? I'm thinking my path to it is different than what is expected, though I'm not fully sure. If you know the startproject mysite could you give it to me? Meaning, if you know the folders and content I think I could get it running on PyCharm. My PyCharm says it's been downloaded, so I think this would be a great way to go into it. </p>

<p>Many thanks.</p>

<p><strong>From Comments</strong></p>

<p>Looks like a virtual environment problem. Without going into the extreme details of your environment settings, try the following: make and navigate to an empty directory, type <code>pyvenv-3.5 ./Env</code>, then <code>source ./Env/bin/activate</code>, next <code>pip install django</code>, and finally <code>python -m django --version</code>. This virtual environment should work and be less prone to other odd PATH problems. </p>

<p><strong>Additional Info</strong></p>

<p>You will need to run the command <code>source ./Env/bin/activate</code> when you open up a new shell or run a bash script in order to active this environment.</p>

<p>Also, you can now manage your pip packages (including django) by using <code>pip freeze &gt; ./requirements.txt</code> to create a lists of your packages w/ version numbers and 'pip install -r ./requirements.txt` to install the packages.</p>

python django osx terminal