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/