質問編集履歴

2

PyCharmでのソースコードの追記

2020/05/11 05:23

投稿

Gosshi
Gosshi

スコア1

test CHANGED
File without changes
test CHANGED
@@ -118,4 +118,84 @@
118
118
 
119
119
 
120
120
 
121
+ PyCharmでのソースコード
122
+
123
+
124
+
125
+ ```ここに言語を入力
126
+
127
+ import pygame
128
+
129
+ from pygame.locals import *
130
+
131
+ import sys
132
+
133
+
134
+
135
+ WHITE = (255, 255, 255)
136
+
137
+ BLACK = (0, 0, 0,)
138
+
139
+
140
+
141
+ def main():
142
+
143
+ pygame.init()
144
+
145
+ screen = pygame.display.set_mode((800, 600))
146
+
147
+ pygame.display.set_caption("Pygame no usable")
148
+
149
+ clock = pygame.time.Clock()
150
+
151
+ font = pygame.font.Font(None, 80)
152
+
153
+ tmr = 0
154
+
155
+
156
+
157
+ while True:
158
+
159
+ for event in pygame.event.get():
160
+
161
+ if event.type == pygame.QUIT:
162
+
163
+ pygame.quit()
164
+
165
+ sys.exit()
166
+
167
+
168
+
169
+ screen.fill(BLACK)
170
+
171
+
172
+
173
+ tmr = tmr + 1
174
+
175
+ col = (0, tmr % 256, 0)
176
+
177
+ pygame.draw.rect(screen, col, [100, 100, 600, 400])
178
+
179
+ sur = font.render(str(tmr), True, WHITE)
180
+
181
+ screen.blit(sur, [300, 200])
182
+
183
+
184
+
185
+ pygame.display.update()
186
+
187
+ clock.tick(30)
188
+
189
+
190
+
191
+ if __name__ == '__main__':
192
+
193
+ main()
194
+
195
+
196
+
197
+ ```
198
+
199
+
200
+
121
201
  足りない情報はお答えできる範囲でお答えしますので、どうかご協力お願いいたします。

1

ターミナルのエラ〜メッセージの追加です。

2020/05/11 05:23

投稿

Gosshi
Gosshi

スコア1

test CHANGED
File without changes
test CHANGED
@@ -14,9 +14,73 @@
14
14
 
15
15
  エラーメッセージ
16
16
 
17
- NONE
17
+ ターミナルでpip install pygame==2.0.0.dev3 の実行時のエラーです。
18
18
 
19
19
 
20
+
21
+ ollecting pygame==2.0.0.dev3
22
+
23
+ Using cached pygame-2.0.0.dev3.tar.gz (3.6 MB)
24
+
25
+ Building wheels for collected packages: pygame
26
+
27
+ Building wheel for pygame (setup.py) ... error
28
+
29
+ ERROR: Command errored out with exit status 1:
30
+
31
+ command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/q0/mtfjv9yn74bgdlwjhjlmfjlc0000gn/T/pip-install-q3qy3e5x/pygame/setup.py'"'"'; __file__='"'"'/private/var/folders/q0/mtfjv9yn74bgdlwjhjlmfjlc0000gn/T/pip-install-q3qy3e5x/pygame/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/q0/mtfjv9yn74bgdlwjhjlmfjlc0000gn/T/pip-wheel-_w2scsyl
32
+
33
+ cwd: /private/var/folders/q0/mtfjv9yn74bgdlwjhjlmfjlc0000gn/T/pip-install-q3qy3e5x/pygame/
34
+
35
+
36
+
37
+ ~~~~長いので省きます~~~~
38
+
39
+ ERROR: Failed building wheel for pygame
40
+
41
+ Running setup.py clean for pygame
42
+
43
+ Failed to build pygame
44
+
45
+ Installing collected packages: pygame
46
+
47
+ Attempting uninstall: pygame
48
+
49
+ Found existing installation: pygame 2.0.0.dev6
50
+
51
+ Uninstalling pygame-2.0.0.dev6:
52
+
53
+ Successfully uninstalled pygame-2.0.0.dev6
54
+
55
+ Running setup.py install for pygame ... error
56
+
57
+ ERROR: Command errored out with exit status 1:
58
+
59
+
60
+
61
+ ~~~割愛します~~~
62
+
63
+ Rolling back uninstall of pygame
64
+
65
+ Moving to /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/pygame/
66
+
67
+ from /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/~ygame
68
+
69
+ Moving to /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pygame-2.0.0.dev6.dist-info/
70
+
71
+ from /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/~ygame-2.0.0.dev6.dist-info
72
+
73
+ Moving to /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pygame/
74
+
75
+ from /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/~ygame
76
+
77
+ ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/q0/mtfjv9yn74bgdlwjhjlmfjlc0000gn/T/pip-install-q3qy3e5x/pygame/setup.py'"'"'; __file__='"'"'/private/var/folders/q0/mtfjv9yn74bgdlwjhjlmfjlc0000gn/T/pip-install-q3qy3e5x/pygame/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/q0/mtfjv9yn74bgdlwjhjlmfjlc0000gn/T/pip-record-kilm5e5q/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/pygame Check the logs for full command output.
78
+
79
+
80
+
81
+ 以上です。切り取り方が下手くそだと思います。申し訳ありません。
82
+
83
+ ぬけてる情報があれば、ご指摘願います。
20
84
 
21
85
 
22
86