Can you install numpy_financial from Anaconda instead of pip?

Viewed 1758

The financial functions of numpy have been deprecated and will be removed from future versions. They are now part of a new package called numpy_financial.

I understand it can be installed with pip, but I also understand that pip should be avoided whenever possible if you are running an Anaconda installation, as I am (is this true?).

So my question is: is it possible to install numpy_financial through Anaconda?

I have tried:

conda install numpy_financial

and

conda install -c conda-forge numpy_financial

but neither works - neither manages to find the package.

2 Answers

You are correct that when using anaconda, you should always try first using conda install xyz before reverting to pip install xyz (direct documentation reference).

@Back2Basics is also correct that in the meantime, you can conda install. Official documentation is found here.

However, once numpy financial functions have been depreciated, you should rely on their provided pip install:

pip install numpy-financial
Related