python - 出现运行时错误:可用的 OpenGL 驱动程序未导出 glCreateProgram
问题描述
我正在运行 Win 10,DirectX v12 版本 382.05
我从https://realpython.com/arcade-python-game-framework/复制了这个。我已经安装了街机、psychoPy 和数据类。
def basic_arcade_program():
# Basic arcade program
# Displays a white window with a blue circle in the middle
# Imports
import arcade
# Constants
SCREEN_WIDTH = 600
SCREEN_HEIGHT = 800
SCREEN_TITLE = "Welcome to Arcade"
RADIUS = 150
# Open the window
arcade.open_window(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_TITLE)
# Set the background color
arcade.set_background_color(arcade.color.WHITE)
# Clear the screen and start drawing
arcade.start_render()
# Draw a blue circle
arcade.draw_circle_filled(SCREEN_WIDTH / 2, SCREEN_HEIGHT / 2, RADIUS, arcade.color.BLUE)
# Finish drawing
arcade.finish_render()
# Display everything
arcade.run()
basic_arcade_program()
错误源于此行:
arcade.draw_circle_filled(SCREEN_WIDTH / 2, SCREEN_HEIGHT / 2, RADIUS, arcade.color.BLUE)
解决方案
推荐阅读
- java - 在 kotlin 中添加到地图时出现 UnsupportedOperationException
- server - 什么是 fortigate ip_src_session 和 ip_dst_session 设置等的推荐设置
- android - 将现有的 Android 项目文件推送到 GitHub
- azure - 为我的应用服务使用托管标识时,Azure 服务总线的连接字符串的正确格式是什么?
- typescript - 可能的?断言 arg 的谓词函数不为空(以及其他一些属性)
- c# - 将 LangVersion 元素添加到 .csproj 文件中的方法?
- mysql - 我可以在 BEFORE UPDATE 触发器中删除吗
- swift - Swift 中的动画淡入淡出
- r - 安装 tinytex::install_tinytex() 后如何解决 RMarkdown 错误
- macros - 每当我尝试用 wine 打开 jitbit 宏记录器时,它总是给我一个 Loadexception 错误。我怎样才能解决这个问题?