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

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

    I would be suggesting you the exact way how to install .whl file. Initially I faced many issues but then I solved it, Here is my trick to install .whl files.

    Follow The Steps properly in order to get a module imported

    1. Make sure your .whl file is kept in the python 2.7/3.6/3.7/.. folder. Initially when you download the .whl file the file is kept in downloaded folder, my suggestion is to change the folder. It makes it easier to install the file.
    2. Open command prompt and open the folder where you have kept the file by entering

    cd c:\python 3.7

    3.Now, enter the command written below

    >py -3.7(version name) -m pip install (file name).whl
    
    1. Click enter and make sure you enter the version you are currently using with correct file name.

    2. Once you press enter, wait for few minutes and the file will be installed and you will be able to import the particular module.

    3. In order to check if the module is installed successfully, import the module in idle and check it.

    Thank you:)

提交回复
热议问题