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

后端 未结 17 1968
刺人心
刺人心 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 00:59

    I am in the same boat as the OP.

    Using a Windows command prompt, from directory:

    C:\Python34\Scripts>
    pip install wheel
    

    seemed to work.

    Changing directory to where the whl was located, it just tells me 'pip is not recognized'. Going back to C:\Python34\Scripts>, then using the full command above to provide the 'where/its/downloaded' location, it says Requirement 'scikit_image-...-win32.whl' looks like a filename, but the filename does not exist.

    So I dropped a copy of the .whl in Python34/Scripts, ran the exact same command over again (with the --find-links= still going to the other folder), and this time it worked.

提交回复
热议问题