gpt4 book ai didi

python - 无法在pycharm中安装BeautifulSoup

转载 作者:太空宇宙 更新时间:2023-11-03 17:31:12 25 4
gpt4 key购买 nike

DEPRECATION: --no-install, --no-download, --build, and --no-clean are deprecated.  See https://github.com/pypa/pip/issues/906.
Downloading/unpacking BeautifulSoup==3.2.1
Downloading BeautifulSoup-3.2.1.tar.gz
Running setup.py (path:/tmp/pycharm-packaging0.tmp/BeautifulSoup/setup.py) egg_info for package BeautifulSoup
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pycharm-packaging0.tmp/BeautifulSoup/setup.py", line 22
print "Unit tests have failed!"
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "<string>", line 17, in <module>

File "/tmp/pycharm-packaging0.tmp/BeautifulSoup/setup.py", line 22

print "Unit tests have failed!"

^

SyntaxError: invalid syntax

----------------------------------------
Cleaning up...

Command python setup.py egg_info failed with error code 1 in /tmp/pycharm-packaging0.tmp/BeautifulSoup
Storing debug log for failure in /home/jatin/.pip/pip.log

最佳答案

发生这种情况是因为您尝试在 python3 中安装 BeautifulSoup,只有在使用 python2 时才有效。

为了在 python3 中安装它,请使用pip 安装 beautifulsoup4

关于python - 无法在pycharm中安装BeautifulSoup,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31825433/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com