24

I am having trouble installing a wheel file via pip.

  1. I open my command prompt
  2. write the following in the prompt

    C:/Python34/Scripts/pip install C:/Users/Hamsa/Downloads/pygame.whl

  3. Then I get this message

    pygame.whl is not a valid wheel filename. Storing debug log for failure in C:\Users\Hamsa\pip\pip.log

I don't what to do and I need your help.

CDspace
  • 2,639
  • 18
  • 30
  • 36
Kimbly North
  • 365
  • 1
  • 3
  • 10

3 Answers3

38

You should correct name format for installing wheel file. Because wheel file name also includes many information such as the version of program, supported python version. Your command should be like the command below.

pip install pygame‑1.9.3‑cp34‑cp34m‑win_amd64.whl
Harun ERGUL
  • 5,770
  • 5
  • 53
  • 62
3

If the answer suggested by @Harun doesnot work, try

python -m pip install <whl file name with complete path>.whl

If u have more than 1 Python versions installed , check which version of python is being used to install the package using:

python -v 

Also refer to pygame readme for an official installation guide.

Harshdeep Sokhey
  • 324
  • 5
  • 15
0

download fasttext-0.9.2-cp39-cp39-win_amd64.whl wheel file from lfd.uci.edu/~gohlke/pythonlibs/ and then cd download path

pip3 install fasttext-0.9.2-cp39-cp39-win_amd64.whl

after that

pip install fasttext
Jan Černý
  • 1,268
  • 2
  • 17
  • 31