Something screwy with pip/python packages after hard-drive crash
<p>He everyone,</p>

<p>I recently had a harddrive corruption. Luckily I had all my files backed up by the online service CrashPlan. </p>

<p>This program only grabs files from the /users/username director, so when I restored my computer after reformatting my harddrive, I just made sure that the user file that was restored was the admin user on the computer and viola, everything was (almost) back to normal.</p>

<p>I was unable to start up my ipython, so I tried a pip-install. Turns out my pip was also gone (weird), so I redownloaded pip. Then when trying to install ipython I ran into a roadblock, <a href="https://stackoverflow.com/questions/33234665/upgrading-setuptools-on-osx-el-capitan">which was solved by this post</a></p>

<p>However, when I try to start up ipython or ipython notebook from the command line, I get this error:</p>

<pre><code>biot21-159-dhcp:Downloads kevin$ ipython
-bash: ipython: command not found
</code></pre>

<p>I tried booting up a new terminal session--no luck. Any ideas?</p>

<p>BTW, I'm running a late 2011 macbook pro with OSX 10.11 (ElCapitan)</p>

<hr>

<p>EDIT:
so doing a reinstall of python using homebrew <code>brew install python</code> and then using <code>pip install ipython</code> did the job. Interestingly, I no longer have to add <code>--user python</code> after the pip statement. I don't know enough to answer why that is, but maybe someone out there that knows more could?</p>