Python: Difference between revisions

no edit summary
(Marked this version for translation)
No edit summary
Line 658: Line 658:
=== AttributeError: module ‘numpy’ has no attribute ‘X’ === <!--T:96-->
=== AttributeError: module ‘numpy’ has no attribute ‘X’ === <!--T:96-->
When installing <code>numpy</code> without specifying a version number, the latest available version will be installed.
When installing <code>numpy</code> without specifying a version number, the latest available version will 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 expired in v1.24].
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 expired in v1.24].


<!--T:97-->
<!--T:97-->
Line 664: Line 664:


<!--T:98-->
<!--T:98-->
This can be solved by installing a previous version of numpy: <code>pip install --no-index 'numpy<1.24'</code>.
This can be solved by installing a previous version of Numpy: <code>pip install --no-index 'numpy<1.24'</code>.


=== ModuleNotFoundError: No module named 'X' === <!--T:115-->
=== ModuleNotFoundError: No module named 'X' === <!--T:115-->
Line 693: Line 693:


<!--T:121-->
<!--T:121-->
This is caused by an incompatible version of numpy installed or used and you must install a compatible version.
This is caused by an incompatible version of Numpy installed or used and you must install a compatible version.


<!--T:122-->
<!--T:122-->
rsnt_translations
56,420

edits