我试图使用以下命令在mac中安装beautifulsoup4:
pip3 install beautifulsoup4但我得到了以下错误:
Could not find a version that satisfies the requirement beautifulsoup4 (from versions: )
No matching distribution found for beautifulsoup4我怎么才能解决这个问题?
发布于 2018-04-07 17:39:46
用pip3 install --upgrade pip更新pip。现在你应该可以安装漂亮汤pip3 install beautifulsoup4了。如果失败,请尝试:python3 -m pip install beautifulsoup4
发布于 2018-04-07 04:01:44
如果您使用的是Debian或Ubuntu的最新版本,您可以使用系统包管理器安装Beautiful:
$ apt-get install python-bs4 (用于Python2)
$ apt-get install python3-bs4 (用于Python3)
或
您可以用easy_install或pip安装它。
$ easy_install beautifulsoup4
$ pip install beautifulsoup4如果使用的是Anaconda发行版,则可以使用以下命令。
conda install -c anaconda beautiful-soup希望这能有所帮助。
发布于 2018-08-22 13:53:19
我试着用Jatmir的建议来升级pip3,但是它对我没有用。最后,我在本文中找到了另一种方法来升级https://github.com/pypa/pip/issues/5255#issuecomment-381702613
curl https://bootstrap.pypa.io/get-pip.py | python3https://stackoverflow.com/questions/49703657
复制相似问题