使用Pip安装BeautifulSoup4

时间:2018-07-14 23:12:16

标签: python beautifulsoup pip

我正在尝试使用pip安装beatifulsoup4,但遇到问题。

我有python3.6,但它没有pip,所以我使用

安装了它
sudo easy_install pip 

但是,当我尝试通过输入来安装精美的汤类

pip install beautifulsoup4

我知道了:

[Errno 13] Permission denied: '/Library/Python/2.7/site-packages/beautifulsoup4-4.6.0.dist-info'
Consider using the `--user` option or check the permissions.

我不知道如何更新权限,也不确定将其安装到其他地方是否会导致路径错误(我是新来的!),所以我使用了

python -m pip install --user beautifulsoup4 

,它返回了以下内容:

Collecting beautifulsoup4
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/9e/d/10f46e5cfac773e22707237bfcd51bbffeaf0a576b0a847ec7ab15bd7ace  /beautifulsoup4-4.6.0-py3-none-any.whl (86kB)
    100% |████████████████████████████████| 92kB 1.9MB/s 
Installing collected packages: beautifulsoup4
Successfully installed beautifulsoup4-4.6.0
You are using pip version 9.0.3, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

这正是我所做的,我输入了'pip install --upgrade pip',并返回了此内容:

 equirement already up-to-date: pip in /Library/Python/2.7/site-packages/pip-10.0.1-py2.7.egg (10.0.1)
matplotlib 1.3.1 requires nose, which is not installed.
matplotlib 1.3.1 requires tornado, which is not installed.

尽管我认为这很奇怪,但是我还是忽略了它,然后继续确认我已经使用pip list安装了beautifulsoup4。它不在列表中,所以我使用了pip show beautifulsoup4,甚至什么也没有返回。

我不确定目前该怎么办?预先感谢。

0 个答案:

没有答案
相关问题