Version of pandas is incompatible with numpy < 1.20.3 - python

I kept getting error: ImportError: this version of pandas is incompatible with numpy < 1.20.3 your numpy version is 1.18.5. Please upgrade numpy to >= 1.20.3 to use this pandas version
And I'm unable to update, remove, and reinstall numpy.
I tried pip install numpy and pip3 install numpy and kept getting this error: AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
Edit: I tried pip install --force-reinstall numpy and pip install numpy==1.20.3 and still got AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'

Try this.
pip install --force-reinstall numpy
and then
pip install numpy==1.20.3

Related

Module not found even though I have it installed

I've tried all of this
pip install numpy
pip3 install numpy
python -m pip install numpy
and when I try import numpy i just get
ModuleNotFoundError: No module named 'numpy'
how do i fix this?

ImportError: numpy.core.multiarray failed to import (cv2)

I tried 3 versions of python and deferent versions of Numpy, OpenCv-Python and I still become the same error
I fixed this issue by uninstalling numpy
pip uninstall numpy
and after installing the previous version of numpy
python -m pip install numpy==1.19.3

No module named 'numpy' Even When Installed

I'm using windows with Python 3.7.3, I installed NumPy via command prompt with "pip install NumPy", and it installed NumPy 1.16.4 perfectly. However, when I run "import numpy as np" in a program, it says "ModuleNotFoundError: No module named 'numpy'"
I only have one version of python installed, and I don't know how I can fix this. How do I fix this?
python3 is not supported under NumPy 1.16.4. Try to install a more recent version of NumPy:
pip uninstall numpy
pip install numpy

ModuleNotFoundError: No module named 'numpy.testing._private

I'm trying to run tensorflow:
it turned out
from numpy.testing._private.pytesttester import PytestTester
ModuleNotFoundError: No module named 'numpy.testing._private'
numpy/init.py look like this:
I had the same problem when I installed tensorflow. Solved the issue by upgrading pip :
python.exe -m pip install --upgrade pip
and installing numpy again :
pip uninstall numpy
pip install numpy

OpenCV install: deprecation error

I would like to use opencv with python, but I think I have a problem with my numpy version.
How can I make sure that opencv uses the right numpy version?
I did
sudo pip install opencv-python
And I received this message
Installing collected packages: numpy, opencv-python
Found existing installation: numpy 1.8.0rc1
DEPRECATION: Uninstalling a distutils installed project (numpy) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Uninstalling numpy-1.8.0rc1:
Successfully uninstalled numpy-1.8.0rc1
Successfully installed numpy-1.14.5 opencv-python-3.4.1.15
Now when I try
import cv2
I get
ImportError: numpy.core.multiarray failed to import
I also updated my numpy version with
sudo pip install -U numpy
If you are using both Py2.7 and 3.5 on your machine, make sure numpy is being installed for the correct version by doing either python3 -m pip install numpy -I
or python2 -m pip install numpy -I

Categories