user428487 user428487 -3 years ago 404
Python Question

AttributeError: module 'numpy' has no attribute 'flip'

enter image description here

Error message:
AttributeError: module 'numpy' has no attribute 'flip'

I can't understand why it's giving me this error, I've googled and made sure I'm up to the latest version of numpy. I definitely don't have another file called numpy in my working directory. Any help would be greatly appreciated!

Answer Source

np.flip has been introduced for versions v.1.12.0 and beyond. For older versions, you can consider using np.fliplr and np.flipud.

Alternatively, upgrade your numpy version using

sudo pip install --upgrade numpy
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download