Đây là phương pháp duy nhất phù hợp với tôi.
pip install pygame==1.9.1release --allow-external pygame --allow-unverified pygame
-
Đây là những bước mà đưa tôi đến với lệnh này (tôi đặt chúng để mọi người tìm thấy nó dễ dàng):
$ pip install pygame
Collecting pygame
Could not find any downloads that satisfy the requirement pygame
Some externally hosted files were ignored as access to them may be unreliable (use --allow-external pygame to allow).
No distributions at all found for pygame
Sau đó, khi suggestes Tôi cho phép bên ngoài:
$ pip install pygame --allow-external pygame
Collecting pygame
Could not find any downloads that satisfy the requirement pygame
Some insecure and unverifiable files were ignored (use --allow-unverified pygame to allow).
No distributions at all found for pygame
Vì vậy, tôi cũng cho phép unverifiable:
$ pip install pygame --allow-external pygame --allow-unverified pygame
Collecting pygame
pygame is potentially insecure and unverifiable.
HTTP error 400 while getting http://www.pygame.org/../../ftp/pygame-1.6.2.tar.bz2 (from http://www.pygame.org/download.shtml)
Could not install requirement pygame because of error 400 Client Error: Bad Request
Could not install requirement pygame because of HTTP error 400 Client Error: Bad Request for URL http://www.pygame.org/../../ftp/pygame-1.6.2.tar.bz2 (from http://www.pygame.org/download.shtml)
Vì vậy, sau một chuyến thăm tới http://www.pygame.org/download.shtml, tôi nghĩ về việc thêm số phiên bản (1.9.1release là một hiện ổn định).
-
Hy vọng điều đó sẽ hữu ích.
Bạn phải tải xuống và cài đặt nó bằng trình cài đặt từ https://bitbucket.org/pygame/pygame/downloads? –
Không thực sự, nhưng cài đặt nó trực tiếp bằng cách sử dụng lệnh "pip install pygame" không nhận được tôi ở bất cứ đâu.Sử dụng phương pháp này tôi ít nhất đã có thể tải về nó 80 một cái gì đó% trước khi nó đã không thể tháo rời. Tôi không thực sự chắc chắn tại sao nó không hoạt động ... –