无法在 pycharm 中安装 BeautifullSoup
Unable to install BeautifullSoup in pycharm
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 中安装它,请使用
点安装 beautifulsoup4
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 中安装它,请使用 点安装 beautifulsoup4