我仍然是超級新手!試圖從在線教程學習,但我似乎被困在第一步!我想我安裝了bs4,但它沒有顯示在python3中,是否安裝在錯誤的地方?ModuleNotFoundError:沒有名爲'bs4'的模塊
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 "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'bs4'
任何幫助,將不勝感激:)
運行於** python **不** ** python3 **因爲你在'python2.7'中安裝bs4 –