【发布时间】:2021-11-28 22:10:36
【问题描述】:
我正在尝试使用命令使用 pyinstaller 将 .py 转换为 exe
pyinstaller --onefile app.py
当我运行exe文件时,它会抛出错误
from bs4 import BeautifulSoup as bs
在这一行,找不到模块
有人可以帮助我在我的文件中使用 python 包
from bs4 import BeautifulSoup as bs
from csv import reader
import json, requests, time, gspread, sys, re, calendar, traceback, string, unidecode, datetime
from oauth2client.service_account import ServiceAccountCredentials
pyinsatller 无法在没有导入 exe 正常工作的情况下加载 python 包
删除 python 导入使其 100% 工作
我正在使用 python 2.7
任何帮助将不胜感激
【问题讨论】:
标签: python python-2.7 pyinstaller