Skip to content

Navigation Menu

Sign in
Appearance settings
Sign up
Appearance settings

Attribute Error after installing v1.16.0 because pip is not uninstalling #12736

Copy link
Copy link

Description

@treyenelson
Issue body actions

I pip installed the latest numpy and get the below error. The error goes away if I roll back to v1.15.4.
The most closely related issue I could find is #12028.

Reproducing code example:

import numpy as np

Error message:

    Traceback (most recent call last):
      File "/home/trey/script.py", line 6, in <module>
        import numpy as np
      File "/home/trey/.local/lib/python3.6/site-packages/numpy/__init__.py", line 142, in <module>
        from . import core
      File "/home/trey/.local/lib/python3.6/site-packages/numpy/core/__init__.py", line 59, in <module>
        from . import numeric
      File "/home/trey/.local/lib/python3.6/site-packages/numpy/core/numeric.py", line 3093, in <module>
        from . import fromnumeric
      File "/home/trey/.local/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 17, in <module>
        from . import _methods
      File "/home/trey/.local/lib/python3.6/site-packages/numpy/core/_methods.py", line 158, in <module>
        _NDARRAY_ARRAY_FUNCTION = mu.ndarray.__array_function__
    AttributeError: type object 'numpy.ndarray' has no attribute '__array_function__'

Numpy/Python version information:

1.16.0
3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0]

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.