我试图将BeatifulSoup
添加到我的python项目中,但在输入pip3 install BeautifulSoup
后,它返回,
Collecting BeautifulSoup
Downloading BeatifulSoup-3.2.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/private/var/folders/27/cw_r5rjs6rg5vqnqmvbjs9n00000gn/T/pip-build-tddl0x3f/BeautifulSoup/setup.py", line 22
print "Unit tests have failed!"
^
SyntaxError: Missing parentheses in call to 'print'
---------------------------------------------
Command "python setup.py egg_info" failed with error code 1 in
/private/var/folders/27/cw_r5rjs6rg5vqnqmvbjs9n00000gn/T/pip-build-tddl0x3f/BeautifulSoup
You are using pip version 7.1.2, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
但是当我尝试pip3 install --upgrade pip3
时,它会返回
Could not find a version that satisfies the requirement pip3 (from versions)
No matching distribution found for pip3
我知道在执行setup.py文件时与python2和python3发生冲突,但我不知道如何解决这个问题才能正确运行所以请帮助我。