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

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

    There are several file versions on the great Christoph Gohlke's site.

    Something I have found important when installing wheels from this site is to first run this from the Python console:

    import pip
    print(pip.pep425tags.get_supported())
    

    so that you know which version you should install for your computer. Picking the wrong version may fail the installing of the package (especially if you don't use the right CPython tag, for example, cp27).

提交回复
热议问题