title: Include external package in Anaconda
body: <p>I'd like to include an external library (developed internaly) we are using in our team in Anacoda folder. I know the simple way is to put the package directly into <code>C:/Users/XXX/AppData/Local/Continuum/Anaconda2/Lib/site-packages</code>.</p>
  
  <p>However I need to keep the library at a different place. One of the <a href="https://stackoverflow.com/questions/37006114/anaconda-permanently-include-external-packages-like-in-pythonpath">answers</a> here suggested to create a <code>.pth</code> file in the <code>site-packages</code>, which is solution I like. Therefore I created file <code>name.pth</code> where there is one line with path of the library <code>C:/path to/whatever/library</code>. However if I restart Spyder and try to import the library, I get an error </p>
  
  <blockquote>
    <p>ImportError: No module named XXX</p>
  </blockquote>
  
  <p>I am thinking that I probably specified the path in a wrong way? Also there is a blank space in the path. Maybe that could be a problem?</p>
  
  <p>[Python 2.7 with Anacodna distribution 4.3.17, Windows 7]</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>So far I found that I can create a <code>.py</code> file in the <code>site-packages</code> folder which contains following:</p>
  
  <pre><code># make path
  import sys
  sys.path.append('C:/path to/whatever/library')
  
  from packageA import A1, A2, A3
  from packageB import B1, B2, B3
  </code></pre>
  
  <p>If I keep the same name, the import works just fine. But then everytime I add a new package or function, the <code>.py</code> file must be updated, which is really annoying.</p>