我正在尝试使用pyinstaller将我用pygame创建的游戏转换成.exe文件。由于某些原因,它不起作用。但是,它说我已经安装了它,但由于某些原因,它不能被识别。下面是一些图片: When I try to run it using: pyinstaller --onefile -w main.py This image is when I try to uninstall and reinstall pyinstaller. It currently says that it's installed but when I try to use the command: "
3.11ChromeDriver 107.0.5304.62Chrome 107.0.5304.107Selenium Python 4.6.0
当我尝试用pyinstaller构建exe时,Chromedriver总是显示出来。
from selenium import webdriver
from selenium.webdriver.chrome.service import Service as ChromeService
from subprocess import CREATE_NO_WINDOW
chrome_options = webd
我试图从终端构建一个通过PyInstaller利用状态模型的exe文件。exe文件是由PyInstaller构建的,没有错误--但是当运行时,我会得到以下错误:
ModuleNotFoundError: No module named 'statsmodels.__init__._version'
我尝试过在PyInstaller“钩子”目录中安装statsmodel钩子,就像描述的那样,但是这不起作用。我还尝试在我的Python代码中显式导入statsmodels.init._version,但这也不起作用。下面是我导入包的代码的顶部:
import pandas as pd
我正在尝试使用pyinstaller包来创建我的python程序的.exe。我一直在使用pyinstaller,一切运行正常,但我尝试在一台新计算机上安装我的程序,在安装结束时,命令提示符显示: assert mpl_data_dir, "Failed to determine matplotlib's data directory!"
AssertionError: Failed to determine matplotlib's data directory! 我已经尝试了这篇文章Matplotlib directory not found while u
ModuleNotFoundError: No module named 'pyqtgraph.graphicsItems.PlotItem.plotConfigTemplate_pyqt5'
[13260] Failed to execute script main
当执行使用pyinstaller创建的exe时,我尝试使用--hidden import,但仍然不起作用。
我正在尝试使用PyBox2D和Pyglet从python游戏中构建一个exe文件。
当我构建exe时,出现一个无法导入模块的错误:
Unable to import the back-end pyglet: module 'gui.backends' has no attribute 'pyglet_framework'
我想这是因为这个文件只能从__import__()的另一个文件中间接导入/隐藏。
这是我的项目层次结构:
我试图通过多种方式将该文件添加到pyinstaller。在/SpaceJam/building目录中,我尝试调用:
pyinstal