How to install a package not supported by condoms

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

I tried

conda install nptdms 

who gave me a mistake

Error: No packages found in the current osx-64 channels were found: nptdms You can find this package on Binstar using

binstar search -t conda nptdms

So, I tried what I found the auto / nptdms package for linux-64, which I suppose will not work.

So, after some digging, I found instructions here

and tried

 conda skeleton pypi npTDMS conda build npTMDS 

which seemed to work (tests passed.)

But then

 import nptmds 

returns

ImportError: no module named nptdms

So i tried

 conda pipbuild nptdms 

who finished after a while with an error

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

Can someone point me to the best set of instructions?

+6
source share
3 answers
 pip install npTDMS 

Nothing magical in Python from Conda. It can access Python packages anywhere if they are in your path. Installing the package using the simplest method (usually pip or easy_install) should work fine.

(Also, " import nptmds " is incorrect, try " from nptdms import TdmsFile ")

+9
source

pip is a package manager for Python. As I understand it: conda can be used as a package manager for Python and other languages, as a validation manager, etc.

+1
source

The environment conda (the default β€œroot” during installation) encapsulates and manages recipes that other package managers, such as pip (anaconda / bin / pip), can use. If the cond environment in which you want to install the PYTHON package is already active in your path, you can directly use pip. If not, you should use the full path to pip in the conda environment directory that you want to install.

In addition, you can always check conda channels to look for builds / recipes for packages that are not available by default in pip or conda. This includes packages other than python. Many of these channels are discipline specific.

For example, I regularly use the biocond channel, which includes bioinformatics recipes. This is how I actively manage software such as the bowtie2 equalizer.

 $ conda config --add channels bioconda $ conda install bowtie2 
0
source

Source: https://habr.com/ru/post/985899/


All Articles