title: Broke Python on Mac by uninstalling Python wrong, how to get Modules to work again?
body: <p>I'm trying to use Python with the Twisted framework, and have been struggling to get it running.</p>
  
  <p>I've got some dirt simple python code: </p>
  
  <pre><code>from twisted.internet import reactor
  reactor.run()
  </code></pre>
  
  <p>Buy when I run <code>python server.py</code> I get back:</p>
  
  <blockquote>
  <pre><code>  File "server.py", line 1, in &lt;module&gt;
      from twisted.internet import reactor   File "/Library/Python/2.7/site-packages/twisted/__init__.py", line 53, in
  &lt;module&gt;
      _checkRequirements()   File "/Library/Python/2.7/site-packages/twisted/__init__.py", line 37, in
  _checkRequirements
      raise ImportError(required + ": no module named zope.interface.") ImportError: Twisted requires zope.interface 3.6.0 or later: no module
  named zope.interface.
  </code></pre>
  </blockquote>
  
  <p>My first assumption was to run <code>pip install zope.interface</code></p>
  
  <p>Unfortunately, all I get from this is:</p>
  
  <blockquote>
  <pre><code>Requirement already satisfied (use --upgrade to upgrade):
  zope.interface in
  /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
  Requirement already satisfied (use --upgrade to upgrade): setuptools
  in
  /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
  (from zope.interface)
  </code></pre>
  </blockquote>
  
  <p>I also tried <code>easy_install zope.interface</code></p>
  
  <p>But that yields similar results:</p>
  
  <blockquote>
  <pre><code>Searching for zope.interface
  Best match: zope.interface 4.1.1
  zope.interface 4.1.1 is already the active version in easy-install.pth
  
  Using /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
  Processing dependencies for zope.interface
  Finished processing dependencies for zope.interface
  </code></pre>
  </blockquote>
  
  <p>Since apparently zope is installed on my machine, I'm thinking that the problem could possibly be with the python I've got installed. I installed Python3 with brew earlier this year, and I think I may have messed up the python configuration. Any ideas?</p>
  
  <p><strong>Update</strong>
  The default python that is on mac should work for everything I was trying to do above, I verified this on another mac computer. The problem I was having was that I had corrupted my default python image that came with my mac. By following the post below I was able to create working virtualenv again for my python.</p>