Try to uninstall numpy and setuptools first:
pip uninstall -y numpy
pip uninstall -y setuptools
pip install setuptools
pip install numpy
Borrowed from solution provided by mehdiHadji here- https://github.com/ipython/ipyparallel/issues/349
- Cartesian product of x and y array points into single array of 2D points
- Using numpy to build an array of all combinations of two arrays
- Is there any numpy group by function?
- How does numpy.newaxis work and when to use it?
- Compiling numpy with OpenBLAS integration
- What is the difference between flatten and ravel functions in numpy?
- Quick way to upsample numpy array by nearest neighbor tiling [duplicate]
- How do you use the ellipsis slicing syntax in Python?
- Using moviepy, scipy and numpy in amazon lambda
- Most efficient way to find mode in numpy array
- Import Error: No module named numpy
- Transform a set of numbers in numpy so that each number gets converted into a number of other numbers which are less than it
- numpy.where() detailed, step-by-step explanation / examples [closed]
- How to get stable results with TensorFlow, setting random seed
- Select multiple ranges of columns in Pandas DataFrame
- itertools product speed up
- Weighted choice short and simple [duplicate]
- Numpy: Fix array with rows of different lengths by filling the empty elements with zeros
- LogisticRegression: Unknown label type: ‘continuous’ using sklearn in python
- Convert NumPy array to Python list
- Replacing Numpy elements if condition is met
- how to extract frequency associated with fft values in python
- Extracting specific columns in numpy array
- Numpy meshgrid in 3D
- Python Pandas – Missing required dependencies [‘numpy’] 1
- How to extend an array in-place in Numpy?
- Sliding window of M-by-N shape numpy.ndarray
- Slicing a numpy array along a dynamically specified axis
- Fastest pairwise distance metric in python
- NumPy Broadcasting: Calculating sum of squared differences between two arrays
- Linear regression with matplotlib / numpy
- How to apply numpy.linalg.norm to each row of a matrix?
- Conda command not found
- Binary random array with a specific proportion of ones?
- Numpy: Creating a complex array from 2 real ones?
- Matplotlib: how to make imshow read x,y coordinates from other numpy arrays?
- Why is a `for` over a Python list faster than over a Numpy array?
- Find symmetric pairs quickly in numpy
- What is dtype(‘O’), in pandas?
- Efficient thresholding filter of an array with numpy
- Iterating over arbitrary dimension of numpy.array
- AttributeError: ‘numpy.float64’ object has no attribute ‘log10’
- Could not install packages due to a “Environment error :[error 13]: permission denied : ‘usr/local/bin/f2py'”
- In Python NumPy what is a dimension and axis?
- Different std in pandas vs numpy
- Python pandas: how to remove nan and -inf values
- Select elements of numpy array via boolean mask array
- How to access a column in a list of lists in python
- Pretty print a pandas dataframe in VS Code
- Parse a Pandas column to Datetime when importing table from SQL database and filtering rows by date