Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install a package not supported by condas

Tags:

python

conda

I am trying out Anaconda on OS X and need to install the python package "npTDMS".

I tried

conda install nptdms

which gave me an error

Error: No packages found in current osx-64 channels matching: nptdms You can search for this package on Binstar with

binstar search -t conda nptdms

So I tried that which found a package auto/nptdms for linux-64, which I assume won't work.

So, after some digging, I found instructions here

and tried

conda skeleton pypi npTDMS
conda build npTMDS

which seemed to work (the tests passed.)

But then

import nptmds

returns

ImportError: No module named nptdms

So I tried

conda pipbuild nptdms

which finished after a while with the error

Error: package/name must be lowercase, got: u'npTDMS'

Can someone point me to a better set of instruction?

like image 300
pheon Avatar asked Apr 24 '15 16:04

pheon


1 Answers

pip install npTDMS

There's nothing magical about Python run by Conda. It can have access to Python packages anywhere, so long as they're in your path. Installing a package through the simplest way (generally pip or easy_install) should work fine.

(Also, "import nptmds" is not correct; try "from nptdms import TdmsFile")

like image 146
iayork Avatar answered Nov 10 '22 13:11

iayork