How to install this wheel?

后端 未结 5 743
灰色年华
灰色年华 2020-12-11 08:26

I managed to install pip but when I use pip to install the downloaded wheel, it prints:

C:\\Python34\\Scripts\\pip install pygame-1.9.2a0-cp34-none-win_amd64         


        
相关标签:
5条回答
  • 2020-12-11 09:00

    i tried a different version using 64 bit anaconda and it works fine

    pip install pygame-1.9.2a0-cp35-none-win_amd64.whl
    

    cp35 works a charm.

    0 讨论(0)
  • 2020-12-11 09:03

    pip install pygame-1.9.2a0-cp27-none-win_amd64.whl

    this worked on my computer with Python2.7.3(64bit) while other versions not worked.

    0 讨论(0)
  • 2020-12-11 09:04

    Use pip to install wheel files using the full path:

    C:\Python34\Scripts\pip install C:\Python34\Scripts\pygame-1.9.2a0-cp34-none-win_amd64.whl
    

    Without the path the name is seen as a requirement rather than a already-downloaded file. This should work for wheel files that support your current Python architecture. You can verify your architecture with:

    C:\Python34\python.exe -c "import distutils.util; print(distutils.util.get_platform())"
    

    This should print win_amd6. If it prints win32 instead, you have a 32-bit Python binary and need to pick a different wheel.

    0 讨论(0)
  • 2020-12-11 09:05

    Install wheel support for pip:

    pip install wheel
    

    Install the downloaded wheel:

    pip install path/to/pygame-1.9.2a0-cp34-none-win_amd64.whl
    
    0 讨论(0)
  • 2020-12-11 09:16

    I had to remove the 64bit python and install the 32bit version to solve this issue.

    c:\python34\scripts\pip install c:\users\USER\downloads\pygame-1.9.2a0-cp34-none-win32.whl
    Unpacking c:\users\USER\downloads\pygame-1.9.2a0-cp34-none-win32.whl
    Installing collected packages: pygame
    Successfully installed pygame
    Cleaning up...
    

    Worked fine with 32bit :)

    0 讨论(0)
提交回复
热议问题