问题
This is the error I am getting when I run the EXE file of the program. The program runs fine in Pycharm but generates such error in console. bs4.FeatureNotFound: Couldn't find a Tree Builder with features you requested. Do you need to install a parser library?
import sys
from cx_Freeze import setup, Executable
build_exe_options = {"packages": ["bs4, urllib, requests"], "excludes": [""]}
base = None
setup( name = "Weather",
version = "0.9.0",
options = {"program": build_exe_options},
executables = [Executable("program.py", base=base)])
And the program.py is a usual script scraping a simple site.
来源:https://stackoverflow.com/questions/42209586/compiled-with-cx-freeze-beautiful-soup-program-wont-run-in-console