pattern
pattern copied to clipboard
Error while installing
I am new in python. What is the error of this while installing?
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/2d/449tr65508b052gjnmbvv3p40000gn/T/pip-build-rp2ndohf/pattern/setup.py", line 40
print n
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(int n)?
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/2d/449tr65508b052gjnmbvv3p40000gn/T/pip-build-rp2ndohf/pattern/
Looks like you are trying with python 3.x version . you can change the print statement to print (n) or try with python 2.x version
I installed using pip install pattern. How to change it to python2 before installing the pattern?
Can you try like pip2.7 install pattern
Awesome. It worked. Thank you so much.
You can also pip install pattern3, however there is an error in pattern3\text\tree.py in the pypi package currently (which is why I'm here)...
You can also clone the repository, switch to the development branch and then run python3 setup.py install. I did this after I saw the master branch says this:
Pattern supports Python 2.7 and Python 3.6+. The Python 3 version is currently only available on the development branch.
For me it works with python3 now.
Related #232