Python: Difference between revisions

Marked this version for translation
(Add section about custom wheelhouse)
(Marked this version for translation)
Line 223: Line 223:
* Display usage and help: <tt>avail_wheels --help</tt>
* Display usage and help: <tt>avail_wheels --help</tt>


=== Pre-downloading packages ===
=== Pre-downloading packages === <!--T:61-->


<!--T:62-->
You can make your own wheelhouse in your home. A wheelhouse is a folder containing downloaded Python packages (or "wheels"). Compute Canada maintains a wheelhouse that is available on all nodes; that is why you can install many packages without internet access. Here is how to create your own:
You can make your own wheelhouse in your home. A wheelhouse is a folder containing downloaded Python packages (or "wheels"). Compute Canada maintains a wheelhouse that is available on all nodes; that is why you can install many packages without internet access. Here is how to create your own:


<!--T:63-->
# Create a folder in your home, e.g.: <tt>mkdir ~/wheelhouse</tt>.
# Create a folder in your home, e.g.: <tt>mkdir ~/wheelhouse</tt>.
# Go inside this folder, and run <tt>pip download thepackageyouneed</tt>. This will download the package and its dependencies in the working directory. The syntax of <tt>pip download</tt> is the same as <tt>pip install</tt>.
# Go inside this folder, and run <tt>pip download thepackageyouneed</tt>. This will download the package and its dependencies in the working directory. The syntax of <tt>pip download</tt> is the same as <tt>pip install</tt>.
cc_staff
353

edits