我仍然是编码的新手!试图从在线教程中学习,但我似乎陷入了第一步!我想我安装了bs4,但它没有出现在
python3中,是否安装在错误的地方?
robbie$sudo -H pip install bs4
Requirement already satisfied: bs4 in /Library/Python/2.7/site-packages
Requirement already satisfied: beautifulsoup4 in /Library/Python/2.7/site-packages (from bs4)
Robbies-MBP:~ robbie$python3
Python 3.6.1 (v3.6.1:69c0db5050, Mar 21 2017, 01:21:04)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import bs4
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'bs4'
任何帮助将不胜感激 :)