Python: Difference between revisions

Jump to navigation Jump to search
m
Added section on new numpy attribute deprecation in v1.24
m (Fix manlinux typo)
m (Added section on new numpy attribute deprecation in v1.24)
Line 589: Line 589:
<!--T:95-->
<!--T:95-->
Some <tt>manylinux</tt> package can be made available through the [[Available Python wheels|wheelhouse]].
Some <tt>manylinux</tt> package can be made available through the [[Available Python wheels|wheelhouse]].
=== AttributeError: module ‘numpy’ has no attribute ‘X’. ===
When installing a wheel that request any <tt>numpy</tt> version, the latest available will then be installed. In numpy v1.20, many attributes were set for deprecation and are now [https://numpy.org/devdocs/release/1.24.0-notes.html#expired-deprecations deprecated in v1.24].
This result in an error: <code>AttributeError: module ‘numpy’ has no attribute ‘bool’</code> depending on the attribute accessed.
This can be solved by installing a previous version of numpy : <tt>pip install --no-index 'numpy<1.24'</tt>
</translate>
</translate>
cc_staff
284

edits

Navigation menu