开发者

py2app Not Finding BeautifulSoup

开发者 https://www.devze.com 2022-12-21 20:08 出处:网络
I have a script that uses BeautifulSoup that I want to make into a standalone app using py2app.When I run the app made by py2app I get an error saying that the module BeautifulSoup could not be found.

I have a script that uses BeautifulSoup that I want to make into a standalone app using py2app. When I run the app made by py2app I get an error saying that the module BeautifulSoup could not be found. My sys.path has '/Library开发者_如何学运维/Python/2.6/site-packages/BeautifulSoup-3.1.0.1-py2.6.egg' so it seems like it should be there, any advice?


Ppy2app doesn't work with python eggs. You need to extract the contents of the egg (a zip file), or install BeuatifulSoup from a different source. I Believe BeautifulSoup is 1 source file, so you could just copy it into you app folder.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号