ImportError:没有名为bs4的模块如何修复

时间:2015-07-05 16:36:53

标签: python beautifulsoup debian bs4

我有下一个python 2.7(debian)代码

from bs4 import BeautifulSoup
from YandexDiskException import YandexDiskException
import random
from YandexDiskRestClient import YandexDiskRestClient
import sys

我尝试运行,但收到​​此消息

root@vps-1074211:/tmp/beautifulsoup4-4.4.0# python /var/vah13/untitled/grep.py
Traceback (most recent call last):
  File "/var/vah13/untitled/grep.py", line 5, in <module>
    from bs4 import BeautifulSoup
ImportError: No module named bs4

如何解决?

我安装了

pip install beautifulsoup4
apt-get install python-bs4

0 个答案:

没有答案