title: How to refer a project to install package in PyDev
body: <p>I downloaded <code>lxml-3.4.4-cp27-none-win_amd64.whl</code> from 
  <a href="http://www.lfd.uci.edu/~gohlke/pythonlibs/" rel="nofollow noreferrer">http://www.lfd.uci.edu/~gohlke/pythonlibs/</a>, then put it in <code>D:\My Documents\lxml</code>. After that I opened the Windows CMD and changed directory to <code>D:\My Documents\lxml</code> and then did:</p>
  
  <pre><code>&gt;&gt;pip install --index-url http://www.lfd.uci.edu/~gohlke/pythonlibs/ lxml-3.4.4-cp27-none-win_amd64.whl
  unpacking d:\my documents\lxml\lxml-3.4.4-cp27-none-win_amd64.whl
  Installing collected packages: lxml
  Successfully installed lxml
  Cleaning up...
  </code></pre>
  
  <p>How do I now refer to this in an Eclipse/PyDev project?</p>
  
  <p>Edit: (getting closer)</p>
  
  <p>From <a href="https://pypi.python.org/pypi/lxml/3.5.0" rel="nofollow noreferrer">https://pypi.python.org/pypi/lxml/3.5.0</a> download <code>lxml-3.5.0.win-amd64-py2.7.exe</code> (md5)</p>
  
  <p>Run this exe, installing to Python Directory: <code>C:\Python27\</code>  </p>
  
  <p>Eclipse/PyDev project Python27LibSitePackages now contains <code>lxml</code> package and <code>lxml-3.5.0.py2.7.egg-info</code></p>
  
  <p>Create PyDev project from <code>C:\Python27\Lib\site-packages</code> as suggested by @caot below. This project now contains <code>lxml</code> package and <code>lxml-3.5.0.py2.7.egg-info</code>.</p>
  
  <p>In the project that I want to use <code>lxml</code>, I go to Properties > Project References and include the SitePackages project by checking the box.</p>
  
  <p>Still get the error <em>NameError: global name 'etree' is not defined</em></p>
  
  <p>Go to Project Properties > External Libraries > Add source folder
   <code>C:\Python27\Lib\site-packages\lxml</code></p>
  
  <p>Still get the error <em>NameError: global name 'etree' is not defined</em></p>
  
  <p>Edit 2:<br>
  Under <code>C:\Python27\site-packages</code>, I do not see <code>etree.dll</code>. There is:</p>
  
  <pre><code>etree.pyd
  lxml.etree_api.h
  lxml.etree.h
  dtree_defs.h
  etreepublic.pxd
  </code></pre>
  
  <p>Edit 3:
  The answer seems to be:</p>
  
  <ul>
  <li>Download .exe (as stated by @caot)  </li>
  <li>Be sure that only <code>C:\Python27\Lib\site-packages</code> should be in <code>PYTHONPATH</code>, as @Zabio Zadrozny pointed out (via Properites > PyDev-PYTHONPATH > External Libraries > Add source folder)  </li>
  <li>Restart Eclipse (as @caot said) a few times until it takes.</li>
  </ul>