我有下一个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