[英]Unable to import an installed package
I use the Enthought Canopy environment with Python, v1.5.5. 我在Python v1.5.5中使用了Enthought Canopy环境。 The Package Manager indicates I have beautifulsoup4 installed, v4.3.2-5.
软件包管理器指示我已经安装了beautifulsoup4,v4.3.2-5。 Yet all of the following fail, producing
Import Error: No module named xxxxxx
: 但是,以下所有操作均失败,并产生
Import Error: No module named xxxxxx
:
import beautifulsoup
import beautifulsoup4
import BeautifulSoup
Listing installed packages with pip includes ..., 'beautifulsoup4==4.3.2', ...
in the list. 用pip列出已安装的软件包的列表中包括
..., 'beautifulsoup4==4.3.2', ...
根据“快速入门”文档段落中的内容 :
from bs4 import BeautifulSoup
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.