问题
$ pip3 install Jinja Collecting Jinja Using cached https://files.pythonhosted.org/packages/df/50/70f41c599cf0ace6c554b07108916513c70d0e950b0abb18c27a865df7a2/Jinja-1.2.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "/tmp/pip-build-zmxr6gb7/Jinja/setup.py", line 28 except DistutilsError, e: ^ SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-zmxr6gb7/Jinja/
回答1:
Jinja
is old and supports only Python 2.
I guess you want to install Jinja2
.
来源:https://stackoverflow.com/questions/61332532/i-am-unable-to-install-jinja-in-pycharm-using-pip3-install-jinja-how-to-solve-t