无法安装BeautifulSoup 4

时间:2016-01-17 10:25:14

标签: python beautifulsoup

我目前正在使用..

  • Mac OS X

我尝试使用 @Override public void onMapReady(GoogleMap map) { MarkerOptions marker = new MarkerOptions() .icon(BitmapDescriptorFactory.fromResource(R.drawable.your_marker)); .position(new LatLng(latitude, longitude)).title("Hello Maps "); } easy_install BeautifulSoup4,但我一直收到错误消息,例如..

python setup.py install

1 个答案:

答案 0 :(得分:0)

我猜测它不在我们的道路上。从python解释器,执行以下操作以确认:

>>> import sys
>>> print (sys.path)
我给了我这样的东西:

['', '/Library/Python/2.7/site-packages/requests-2.5.3-py2.7.egg', '/Library/Python/2.7/site-packages/BeautifulSoup-3.2.1-py2.7.egg', '/Library/Python/2.7/site-packages/beautifulsoup4-4.3.2-py2.7.egg', '/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg', '/Library/Python/2.7/site-packages/ldap_target_ctl-0.1.0-py2.7.egg', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC', '/Library/Python/2.7/site-packages']
>>>

检查Beautiful Soup是否显示在该列表中,或者位于该列表中的某个目录中(例如/Library/Python/2.7/site-packages)。

所有其他方法都失败了,删除它并再次尝试安装。

pip uninstall BeautifulSoup4

然后尝试重新安装。