rsnt_translations
56,420
edits
No edit summary |
No edit summary |
||
Line 528: | Line 528: | ||
=== Package 'X' requires a different Python: X.Y.Z not in '>=X.Y' === <!--T:82--> | === Package 'X' requires a different Python: X.Y.Z not in '>=X.Y' === <!--T:82--> | ||
When installing packages, you may encounter an error similar to: | When installing packages, you may encounter an error similar to: | ||
< | <code>ERROR: Package 'X' requires a different Python: 3.6.10 not in '>=3.7'</code>. | ||
<!--T:83--> | <!--T:83--> | ||
Line 535: | Line 535: | ||
=== Package has requirement X, but you'll have Y which is incompatible === <!--T:84--> | === Package has requirement X, but you'll have Y which is incompatible === <!--T:84--> | ||
When installing packages, you may encounter an error similar to: | When installing packages, you may encounter an error similar to: | ||
< | <code>ERROR: Package has requirement X, but you'll have Y which is incompatible.</code>. | ||
<!--T:85--> | <!--T:85--> | ||
Upgrade < | Upgrade <code>pip</code> to the latest version or higher than <code>[[https://pip.pypa.io/en/stable/news/#v21-3 21.3]]</code> to use the new dependency resolver: | ||
{{Command | {{Command | ||
|prompt=(ENV) [name@server ~] | |prompt=(ENV) [name@server ~] | ||
Line 584: | Line 584: | ||
Some packages may be incompatible or not supported on the systems. | Some packages may be incompatible or not supported on the systems. | ||
Two common cases are: | Two common cases are: | ||
* trying to install a < | * trying to install a <code>manylinux</code> package | ||
* or a python package built for a different python version (e.g. installing a package built for python 3.11 when you have python 3.9). | * or a python package built for a different python version (e.g. installing a package built for python 3.11 when you have python 3.9). | ||
<!--T:95--> | <!--T:95--> | ||
Some < | Some <code>manylinux</code> package can be made available through the [[Available Python wheels|wheelhouse]]. | ||
=== AttributeError: module ‘numpy’ has no attribute ‘X’. === <!--T:96--> | === AttributeError: module ‘numpy’ has no attribute ‘X’. === <!--T:96--> | ||
When installing a wheel that requests any < | When installing a wheel that requests any <code>numpy</code> version, 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]. | ||
Line 598: | Line 598: | ||
<!--T:98--> | <!--T:98--> | ||
This can be solved by installing a previous version of numpy: < | This can be solved by installing a previous version of numpy: <code>pip install --no-index 'numpy<1.24'</code> | ||
</translate> | </translate> |