Compiled with CX_FREEZE, Beautiful Soup program wont run in Console

大憨熊 提交于 2019-12-10 23:15:13

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!