小编Noa*_* Jb的帖子

通过终端使用 Pyinstaller 编译 python 脚本

我使用 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'

我怎么解决这个问题; 谢谢您的帮助。

python terminal executable pyinstaller

5
推荐指数
1
解决办法
1743
查看次数

背景图像重叠字符(love2d)

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)

lua background layer love2d

1
推荐指数
1
解决办法
1574
查看次数

标签 统计

background ×1

executable ×1

layer ×1

love2d ×1

lua ×1

pyinstaller ×1

python ×1

terminal ×1