Ded*_*ecz 4 python pygame pip python-3.4 python-wheel
我设法安装了pip,但是当我使用pip安装下载的轮子时,它会打印:
C:\Python34\Scripts\pip install pygame-1.9.2a0-cp34-none-win_amd64.whl
Requirement 'pygame-1.9.2a0-cp34-none-win_amd64.whl' looks like a filename, but the file does not exist
pygame-1.9.2a0-cp34-none-win_amd64.whl is not a supported wheel on this platform
Run Code Online (Sandbox Code Playgroud)
该文件与pip位于同一文件夹(Scripts)中.
我也尝试过使用该wheel工具:
C:\Python34\Scripts\wheel install pygame-1.9.2a0-cp34-none-win_amd64.whl
Traceback (most recent call last):
File "C:\Python34\lib\site-packages\wheel\tool\__init__.py", line 358, in main
args.func(args)
File "C:\Python34\lib\site-packages\wheel\tool\__init__.py", line 301, in install_f
args.wheel_dirs, args.force, args.list_files)
File "C:\Python34\lib\site-packages\wheel\tool\__init__.py", line 202, in install
raise WheelError("No such wheel file: {}".format(req))
wheel.tool.WheelError: No such wheel file: pygame-1.9.2a0-cp34-none-win_amd64.whl
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python34\lib\runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "C:\Python34\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Python34\Scripts\wheel.exe\__main__.py", line 9, in <module>
File "C:\Python34\lib\site-packages\wheel\tool\__init__.py", line 361, in main
sys.stderr.write(e.message + "\n")
AttributeError: 'WheelError' object has no attribute 'message'
Run Code Online (Sandbox Code Playgroud)
我使用PowerShell,请帮忙!
Mar*_*ers 10
用于pip使用完整路径安装wheel文件:
C:\Python34\Scripts\pip install C:\Python34\Scripts\pygame-1.9.2a0-cp34-none-win_amd64.whl
Run Code Online (Sandbox Code Playgroud)
没有路径,名称被视为需求而不是已下载的文件.这适用于支持当前Python体系结构的wheel文件.您可以使用以下方
C:\Python34\python.exe -c "import distutils.util; print(distutils.util.get_platform())"
Run Code Online (Sandbox Code Playgroud)
这应该打印win_amd6.如果它打印win32相反,你有一个32位Python二进制文件,需要选择一个不同的轮.
| 归档时间: |
|
| 查看次数: |
33551 次 |
| 最近记录: |