简体   繁体   中英

Which version of BeautifulSoup works with GAE (python 2.5)?

When I write

from BeautifulSoup import BeautifulSoup

I am getting the following error:

No module named BeautifulSoup

All files are saved at project folder, subfolder BeautifulSoup. And it works well if BeautifulSoup.py placed at the same folder where main.py is.

If you want to include BeautifulSoup from a subpackage (subdirectory), make sure that directory has a __init__.py file.

Afterwards from BeautifulSoup.BeautifulSoup import BeautifulSoup should work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM