title: Can’t import a module within my virtualenv
body: <p>I'm very new to Python and web development. I created a Python project and now I want to import an external library.  </p>
  
  <p>I want to import the <code>apans-client</code> library, and this is what I’ve done:</p>
  
  <ol>
  <li>Download and extract the package from <a href="https://pypi.python.org/pypi/apns-client" rel="nofollow">https://pypi.python.org/pypi/apns-client</a>  </li>
  <li><p>Install the package on the command line:  </p>
  
  <pre><code>$ cd apns-client-0.2.1  
  $ /Users/myuser/env/bin/python setup.py install  
  </code></pre>
  
  <p>The installation runs and seems to complete successfully:</p>
  
  <pre><code>running install  
  running bdist_egg  
  running egg_info  
  writing requirements to apns_client.egg-info/requires.txt  
  ..  
  ..  
  ..  
  Installed /Users/myuser/env/lib/python2.7/site-packages/pycparser-2.10-py2.7.egg
  Finished processing dependencies for apns-client==0.2.1  
  </code></pre>
  
  <p>Here <code>env</code> is a virtualenv folder where my project is location.</p></li>
  </ol>
  
  <p>But if I add <code>import apnsclient</code> to one of my scripts and try to run it, then I get an error:</p>
  
  <pre><code> No module named apnsclient.
  </code></pre>
  
  <p>What am I missing?</p>
  
  <h2>Update</h2>
  
  <p>I use PyCharm, and the Project Interpreter is pointing to a different Python installation:</p>
  
  <pre><code>/Library/Framework/Python.framework/3.4/bin/python3
  </code></pre>
  
  <p>I changed the path to <code>~/env</code>, but then I got the following error:  </p>
  
  <blockquote>
    <p>Failed modules<br>
    Python 2.7.8 virtualenv at <code>~/env</code><br>
    - Nav<br>
    generation of skeletons for the modules above will be tried again when the modules
    are updated or a new version of generator is available.</p>
  </blockquote>