pip install fails on Python 3.4.1
Opened this issue · 0 comments
tkremmel commented
The installation fails because BeautifulSoup
is not compatible with Python 3.
A quick-fix might be to use BeautifulSoup4
instead, as it should be compatible with Python 2 and Python 3
The install error message is:
pip install django-inlinecss
Downloading/unpacking django-inlinecss
Downloading django-inlinecss-0.1.1.tar.gz
Running setup.py (path:/Users/xxx/.virtualenvs/xxx-my-project/build/django-inlinecss/setup.py) egg_info for package django-inlinecss
Requirement already satisfied (use --upgrade to upgrade): Django in /Users/xxx/.virtualenvs/xxx-my-project/lib/python3.4/site-packages (from django-inlinecss)
Requirement already satisfied (use --upgrade to upgrade): cssutils in /Users/xxx/.virtualenvs/xxx-my-project/lib/python3.4/site-packages (from django-inlinecss)
Downloading/unpacking BeautifulSoup (from django-inlinecss)
Downloading BeautifulSoup-3.2.1.tar.gz
Running setup.py (path:/Users/xxx/.virtualenvs/xxx-my-project/build/BeautifulSoup/setup.py) egg_info for package BeautifulSoup
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/Users/xxx/.virtualenvs/xxx-my-project/build/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 "/Users/xxx/.virtualenvs/xxx-my-project/build/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 /Users/xxx/.virtualenvs/xxx-my-project/build/BeautifulSoup
Storing debug log for failure in /Users/xxx/.pip/pip.log