Reputation: 3577
I have downloaded the package wquantiles, https://pypi.python.org/pypi/wquantiles, and I have installed it into anaconda using pip install wquantiles
. When I type in the cmd conda list
it shows up as installed, but when I try to import it into spyder as import wquantiles
it says No module named wquantiles
. Is there something I am doing wrong here?
Upvotes: 1
Views: 2296
Reputation: 432
Run: pip3 install wquantiles
import wquantiles
Add this line ^^ in top of your file
Upvotes: 0
Reputation: 21
run this in your terminal :
conda install -c siboles wquantiles
this should work.
Upvotes: 2
Reputation: 106
For future reference. Since version 0.5, the package wquantiles can be imported with a more intuitive:
import wquantiles
or:
from wquantiles import median, quantile
for example.
Upvotes: 0
Reputation: 6276
I installed wquantiles
with pip install wquantiles
like you did, and doing import wquantiles
in python gave me the same error. Looking at the installation path (for me in Ubuntu 14.04, Python 2.7: /usr/local/lib/python2.7/dist-packages
) did not show me a wquantiles
directory, only wquantiles-0.3.egg-info/
and a new file: weighted.py
. This latest file contains the function (also see the github page).
So the solution is to:
import weighted
then you can run for example:
weighted.median(data,weights)
Upvotes: 0