将 pygame 导入 PythonAnywhere [重复]

问题描述 投票:0回答:0

我正在尝试

import pygame
在 PythonAnywhere python venv 中,但是当我这样做时它不会被识别。 问我任何问题,以帮助我解决这个问题。

我已经在 PythonAnywhere 中制作了一个 python venv 并安装了 pygame 但它没有运行任何东西。

Traceback (most recent call last):
  File "/home/5Gamerz/mysite/flask_app.py", line 1, in <module>
    import pygame
ModuleNotFoundError: No module named 'pygame'

如果 Flask 对导入有任何影响,我也在使用 Flask

python pygame python-venv pythonanywhere
© www.soinside.com 2019 - 2024. All rights reserved.