尝试使用 pipenv 时遇到了一些麻烦。我运行了以下命令
pipenv 安装 bs4
结果是:
���������������������������������Requirement already satisfied: bs4 in /home/sam/.local/share/virtualenvs/ICOtools-kKWO0fqD/lib/python2.7/site-packages
Requirement already satisfied: beautifulsoup4 in /home/sam/.local/share/virtualenvs/ICOtools-kKWO0fqD/lib/python2.7/site-packages (from bs4)
Adding bs4 to Pipfile's [packages]���
Locking [dev-packages] dependencies���
Locking [packages] dependencies���
Updated Pipfile.lock (5de6ca)!
然后当我运行我的脚本时,我仍然得到
'ImportError: No module named bs4'
我脚本的第二行是
'from bs4 import BeautifulSoup'
我正在使用 crouton 的 chromebook 上运行 Ubuntu(xenial),不确定这是否会影响这一点。