Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't install numpy after a pip upgrade

For some reason, after pip is upgraded to version 19.0, I'm not able to install the most recent version of numpy (it still perfectly works with pip version 18.1).

When I run

pip install numpy --no-cache

I get this exception

Exception:
Traceback (most recent call last):
  File "/home/me/.venvs/_/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 176, in main
    status = self.run(options, args)
  File "/home/me/.venvs/_/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 346, in run
    session=session, autobuilding=True
  File "/home/me/.venvs/_/lib/python3.6/site-packages/pip/_internal/wheel.py", line 848, in build
    assert building_is_possible
AssertionError

I'm also using python version 3.6, and virtualenvwrapper version 16.0.0.

UPD 0

pip install numpy --no-cache -v

gives this tremendous output

UPD 1 I've opened a bug request on the numpy issue tracker.

like image 804
Montreal Avatar asked Jan 23 '19 11:01

Montreal


People also ask

Can you pip install NumPy?

NumPy can be installed with conda , with pip , with a package manager on macOS and Linux, or from source.

What is the pip command to install NumPy library?

Similarly, you can install numpy in python 3 also. After opening the terminal as detailed in step 1 above, use pip3 command to install numpy. Please notice we are using pip3 command instead of pip. pip3 command is used to let our system know that we are working with python3.

Why is my import NumPy not working?

Python import numpy is not working that means eithers the module is not installed or the module is corrupted. To fix the corrupted module, uninstall it first then reinstall it.

Does Python 3.7 have NumPy?

The Python versions supported in this release are 3.8-3.10, Python 3.7 has been dropped.


1 Answers

That is because pip v19.0 was released yesterday and the latest push to the numpy git rep was 10 days ago. I think we have to wait for an update to be compatible with pip v19.0.

Edit 1: Based on @frmdstryr comment, pip v19.0.1 has been released to fix this.

like image 112
newkid Avatar answered Oct 19 '22 23:10

newkid