我使用 macOS 和 Anaconda 3 来管理我的库和编写脚本。
我想为我的脚本创建一个可执行文件。
我在终端中使用 Pyinstaller 来运行命令:
pyinstaller --onefile /Directory/file.py
但是,终端返回此错误:
File "/anaconda3/lib/python3.6/site-packages/PyInstaller/hooks/hook-sysconfig.py", line 42, in <module>
hiddenimports = [sysconfig._get_sysconfigdata_name()]
TypeError: _get_sysconfigdata_name() missing 1 required positional argument: 'check_exists'
我怎么解决这个问题; 谢谢您的帮助。
background = love.graphics.newImage ("joust.png")
bird = love.graphics.newImage ("bird.png")
x = 0
y = 128
speed = 300
function love.update (dt)
if love.keyboard.isDown ("d") then
x = x + (speed * dt)
end
if love.keyboard.isDown ("a") then
x = x - (speed * dt)
end
if love.keyboard.isDown ("w") then
y = y - (speed * dt)
end
if love.keyboard.isDown ("s") then
y = y + (speed * dt)
end
end
function love.draw()
love.graphics.draw(bird, x, y)
for i = 0, love.graphics.getWidth() / …Run Code Online (Sandbox Code Playgroud)