Python: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 149: Line 149:


<!--T:66-->
<!--T:66-->
Parallel filesystems such as the ones used on our clusters are very good at reading or writing large chunks of data, but can be bad for intensive use of small files. Launching a software and loading libraries, such as starting python and loading a virtual environment, can be slow for this reason.  
Parallel filesystems such as the ones used on our clusters are very good at reading or writing large chunks of data, but can be bad for intensive use of small files. Launching a software and loading libraries, such as starting Python and loading a virtual environment, can be slow for this reason.  


<!--T:64-->
<!--T:64-->
Line 246: Line 246:
Currently available wheels are listed on the [[Available Python wheels]] page. You can also run the command <code>avail_wheels</code> on the cluster.
Currently available wheels are listed on the [[Available Python wheels]] page. You can also run the command <code>avail_wheels</code> on the cluster.
By default, it will:
By default, it will:
* only show you the '''latest version''' of a specific package (unless versions are given);
* only show you the <b>latest version</b> of a specific package (unless versions are given);
* only show you versions that are compatible with the python module (if one loaded) or virtual environment (if activated), otherwise all versions will be shown;
* only show you versions that are compatible with the python module (if one loaded) or virtual environment (if activated), otherwise all versions will be shown;
* only show you versions that are compatible with the CPU architecture that you are currently running on.
* only show you versions that are compatible with the CPU architecture that you are currently running on.
Line 332: Line 332:
numpy  1.22.2    cp39      generic
numpy  1.22.2    cp39      generic
}}
}}
The <i>python</i> column tell us for which version the wheel is available, where <code>cp39</code> stands for <code>cpython 3.9</code>.
The <i>python</i> column tells us for which version the wheel is available, where <code>cp39</code> stands for <code>cpython 3.9</code>.


==== Requirements file ==== <!--T:81-->
==== Requirements file ==== <!--T:81-->
Line 542: Line 542:
|prompt=(ENV) [name@server ~]
|prompt=(ENV) [name@server ~]
|pip install --no-index --upgrade pip}}
|pip install --no-index --upgrade pip}}
Then re-run your install command.
Then rerun your install command.


=== No matching distribution found for X === <!--T:86-->
=== No matching distribution found for X === <!--T:86-->
Line 579: Line 579:


=== X is not a supported wheel on this platform === <!--T:93-->
=== X is not a supported wheel on this platform === <!--T:93-->
When installing a package you may encounter the following error: <code>ERROR: package-3.8.1-cp311-cp311-manylinux_2_28_x86_64.whl is not a supported wheel on this platform.</code>
When installing a package, you may encounter the following error: <code>ERROR: package-3.8.1-cp311-cp311-manylinux_2_28_x86_64.whl is not a supported wheel on this platform.</code>


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

edits

Navigation menu