Skip to content

python2 import connexion will show error! What can i do? #60

@xlwang1995

Description

@xlwang1995

Excuse me, i ran the command:pip install connexion and download this package. But when i use python2 to import connexion, i found that

File "lstm_server.py", line 2, in
import connexion
File "C:\Users\10259.conda\envs\python27\lib\site-packages\connexion_init_.py", line 5, in
File "C:\Users\10259.conda\envs\python27\lib\site-packages\connexion\apis_init_.py", line 1, in
from .abstract import AbstractAPI # NOQA
File "C:\Users\10259.conda\envs\python27\lib\site-packages\connexion\apis\abstract.py", line 32
class AbstractAPI(metaclass=AbstractAPIMeta):
^
SyntaxError: invalid syntax

I really want to know how to solve this problem. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions