Issues with Pandas and Numpy Version

Viewed 5651

I think have a whole mess of conflicts. I was attempting to run some code in a notebook and got the following message:

ImportError: this version of pandas is incompatible with numpy < 1.16.5 your numpy version is 1.16.2. Please upgrade numpy to >= 1.16.5 to use this pandas version

I have version 1.2.2 of pandas installed.

I ran conda update numpy and still got the same error when I tried to run the notebook. I ran conda list and it says my version is 1.20.0 but if I run:

import numpy
print(numpy.version.version)

It says my version is 1.16.2. Running pip list it says my version is 1.16.2. I tried to force an upgrade by using pip install -Iv numpy==1.20.0 --force-reinstall and it returned the following error at the end of the install:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. target-encoding 0.5.0 requires numpy==1.16.2, but you have numpy 1.20.0 which is incompatible. Successfully installed numpy-1.20.1

Yet it still says that my version is 1.16.2 and that pandas is still incompatible with numpy.

Thank you in advance for any help you can give me to resolve this quagmire.

1 Answers

Same issue here. Solved by reinstalling numpy a few times subsequently, until there is not any version of it installed. And then install again the version I needed.

Related