Python: Difference between revisions

Jump to navigation Jump to search
15 bytes added ,  4 years ago
m
no edit summary
(Clarified our discussion of the --no-index and --no-binary pip options)
mNo edit summary
Line 85: Line 85:
The <code>pip</code> command can install packages from a variety of sources, including PyPI and pre-built distribution packages called Python [https://pythonwheels.com/ wheels]. Compute Canada provides Python wheels for a number of packages. In the above example, the [https://pip.pypa.io/en/stable/reference/pip_wheel/#cmdoption-no-index <code>--no-index</code>] option tells <code>pip</code> to ''not'' install from PyPI, but instead to install only from locally-available packages, i.e. the Compute Canada wheels.
The <code>pip</code> command can install packages from a variety of sources, including PyPI and pre-built distribution packages called Python [https://pythonwheels.com/ wheels]. Compute Canada provides Python wheels for a number of packages. In the above example, the [https://pip.pypa.io/en/stable/reference/pip_wheel/#cmdoption-no-index <code>--no-index</code>] option tells <code>pip</code> to ''not'' install from PyPI, but instead to install only from locally-available packages, i.e. the Compute Canada wheels.


Whenever a Compute Canada wheel is available for a given package, we strongly recommend to use it by way of the <code>--no-index</code> option. Compared to using packages from PyPI, wheels that have been compiled by Compute Canada staff can prevent issues with missing or conflicting dependencies, and were optimised for our clusters hardware and libraries. See the list of [[Available Python wheels]].
Whenever a Compute Canada wheel is available for a given package, we strongly recommend to use it by way of the <code>--no-index</code> option. Compared to using packages from PyPI, wheels that have been compiled by Compute Canada staff can prevent issues with missing or conflicting dependencies, and were optimised for our clusters hardware and libraries. See [[#Listing_available_wheels|Listing available wheels]].


<!--T:34-->
<!--T:34-->
cc_staff
127

edits

Navigation menu