How do I install a Python package with a .whl file?

后端 未结 17 1975
刺人心
刺人心 2020-11-22 00:54

I\'m having trouble installing a Python package on my Windows machine, and would like to install it with Christoph Gohlke\'s Window binaries. (Which, to my experience, allev

17条回答
  •  礼貌的吻别
    2020-11-22 01:17

    I just used the following which was quite simple. First open a console then cd to where you've downloaded your file like some-package.whl and use

    pip install some-package.whl
    

    Note: if pip.exe is not recognized, you may find it in the "Scripts" directory from where python has been installed. If pip is not installed, this page can help: How do I install pip on Windows?

    Note: for clarification
    If you copy the *.whl file to your local drive (ex. C:\some-dir\some-file.whl) use the following command line parameters --

    pip install C:/some-dir/some-file.whl
    

提交回复
热议问题