Force install

suggest change

Many packages built for Python 3.4 would run on 3.6 just fine, but if there is no distribution for a specific platform they cannot be installed. There is a workaround. In .whl files (known as wheels), the filename decides whether pip will install the package on a given platform. For example, scikit_learn-0.18.1-cp36-cp36m-win_amd64.whl is {package}-{version}-{python tag}-{abi tag}-{platform}.whl. If the wheel filename is changed so the platform tag matches, pip tries to install the package even when the platform or Python version does not match. Removing the platform or interpreter tags raises an error. Current pip reports Invalid wheel filename (wrong number of parts): 'kjhfkjdf', not kjhfkjdf.whl is not a valid wheel filename.

Alternatively, a .whl file can be unpacked with an archiver such as 7-zip. It usually contains a distribution metadata folder and a folder of files. Those files can be copied into the site-packages directory, which skips pip’s normal install. If the wheel depends on a separate installation script, that script has to be run first.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents