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

后端 未结 17 2369
刺人心
刺人心 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:12

    First, make sure you have updated pip to enable wheel support:

    pip install --upgrade pip
    

    Then, to install from wheel, give it the directory where the wheel is downloaded. For example, to install package_name.whl:

    pip install --use-wheel --no-index --find-links=/where/its/downloaded package_name
    

提交回复
热议问题