简体   繁体   English

安装 pySFML pip 安装 pySFML windows python 3.9、3.7 的问题

[英]problem with install pySFML pip install pySFML windows python 3.9, 3.7

I try to install我尝试安装

(env_py) PS D:\github\env_py\Scripts> pip install pySFML

After that I have:之后我有:

ERROR: Could not find a version that satisfies the requirement pySFML (from versions: none)

ERROR: No matching distribution found for pySFML

I am using python 3.9 and 3.7 on windows And there is the same problem我在 windows 上使用 python 3.9 和 3.7 也有同样的问题

THANKS!谢谢!

The package name seems to be sfml , not pySFML . package名称似乎是sfml ,而不是pySFML

Try尝试

pip install sfml

pip install pySFML doesnot work anymore. pip install pySFML 不再起作用。 The best way is to download the wheel from the below link and install it through wheel file最好的方法是从下面的链接下载轮子并通过轮子文件安装它

https://www.lfd.uci.edu/~gohlke/pythonlibs/#pysfml

To install the wheel file just go to the directory where you have downloaded the file and then just do要安装轮文件,只需将 go 安装到您下载文件的目录,然后执行

pip install xyz.wheel 

Another way, on linux sudo aptitude install python3-sfml另一种方式,在 linux sudo aptitude install python3-sfml

It is work I can这是我能做的工作

import sfml but on windows I still can not install import sfml但在 windows 上我仍然无法安装

https://www.sfml-dev.org/download/bindings.php https://www.sfml-dev.org/download/bindings.php

Extract the archive, and copy the files to your installation of Python.解压缩存档,并将文件复制到 Python 的安装中。 If you don't know where it's located, by default it should be "C:\Python26" on Windows or "/usr/lib/python2.6" on Linux.如果您不知道它的位置,默认情况下它应该是 Windows 上的“C:\Python26”或 Linux 上的“/usr/lib/python2.6”。

Once the files are properly installed, you're ready to use PySFML.amd following command python setup.py build正确安装文件后,您就可以按照命令 python setup.py build 使用 PySFML.amd

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM