使用PHP exec运行导入BeautifulSoup

时间:2016-05-16 01:47:49

标签: php python beautifulsoup exec bs4

如果我在我的脚本中包含此行from bs4 import BeautifulSoupexec将返回代码1.如果我删除bs4,则脚本可以正常工作。这只有在我通过PHP运行脚本时才会发生。使用命令行没有错误。

有什么想法吗?

我做了sudo pip install beautifulsoup4

0 个答案:

没有答案
相关问题