The Python Oracle

Wheel file installation

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Over a Mysterious Island Looping

--

Chapters
00:00 Question
00:25 Accepted answer (Score 225)
01:04 Answer 2 (Score 34)
01:49 Answer 3 (Score 5)
02:05 Thank you

--

Full question
https://stackoverflow.com/questions/2800...

Accepted answer links:
[wheel]: http://wheel.rtfd.org/

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #installation #pythonwheel

#avk47



ACCEPTED ANSWER

Score 255


You normally use a tool like pip to install wheels. Leave it to the tool to discover and download the file if this is for a project hosted on PyPI.

For this to work, you do need to install the wheel package:

pip install wheel

You can then tell pip to install the project (and it'll download the wheel if available), or the wheel file directly:

pip install project_name  # discover, download and install
pip install wheel_file.whl  # directly install the wheel

Also see the wheel project documentation.




ANSWER 2

Score 47


If you already have a wheel file (.whl) on your PC, then just go with the following code:

cd ../user
pip install file.whl

If you want to download a file from web, and then install it, go with the following in command line:

pip install package_name

Or, if you have the URL:

pip install http//websiteurl.com/filename.whl

This will for sure install the required file.

Note: I had to type pip2 instead of pip while using Python 2.




ANSWER 3

Score 8


You can follow the below command to install using the wheel file at your local system:

pip install /users/arpansaini/Downloads/h5py-3.0.0-cp39-cp39-macosx_10_9_x86_64.whl



ANSWER 4

Score 1


Also, you can use this command to make sure that you have the latest version and install a wheel:

venv/scripts/python -m pip install -U wheel package_name