title: import QuantLib as ql ERROR
body: <p>I downloaded and installed <code>pyql</code> using <code>python setup.py install</code></p>
  
  <p>If I import things I need one by one from <code>pyql</code>, it works, e.g.,</p>
  
  <pre><code>from quantlib.instruments.api import AmericanExercise,EuropeanExercise, EuropeanOption, \
       VanillaOption, Put, Call
  from quantlib.instruments.payoffs import PlainVanillaPayoff
  </code></pre>
  
  <p>However, if I try </p>
  
  <pre><code>import QuantLib as ql
  
  
  [idf@mail python]$ python bootstrap_yc.py 
  Traceback (most recent call last):
    File "bootstrap_yc.py", line 1, in &lt;module&gt;
      import QuantLib as ql
  ImportError: No module named QuantLib
  [idf@mail python]$ 
  </code></pre>
  
  <p>I added the directory of the <code>quantlib</code> egg file in anaconda to <code>PYTHONPATH</code> to no avail.</p>
  
  <pre><code>[idf@mail python]$ echo $PYTHONPATH
  /home/idf/anaconda2/lib/python2.7/site-packages/quantlib-0.1-py2.7-linux-x86_64.egg/quantlib
  [idf@mail python]$ 
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>I am able to say</p>
  
  <pre><code>from quantlib import *
  
  import quantlib as ql
  </code></pre>
  
  <p>But then things like</p>
  
  <pre><code># Deposit rates
  depo_maturities = [ql.Period(6,ql.Months), ql.Period(12, ql.Months)]
  depo_rates = [5.25, 5.5]
  </code></pre>
  
  <p>return an error:</p>
  
  <pre><code>[idf@mail python]$ python bootstrap_yc.py 
  Traceback (most recent call last):
    File "bootstrap_yc.py", line 18, in &lt;module&gt;
      depo_maturities = [ql.Period(6,ql.Months), ql.Period(12, ql.Months)]
  AttributeError: 'module' object has no attribute 'Period'
  [idf@mail python]$ 
  </code></pre>