Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
370 views
in Technique[技术] by (71.8m points)

installation - unable to install python swagger client using terminal

Trying to install generated swagger client (from https://editor.swagger.io/) and failing miserably.

i change to the correct directory and type this into terminal: python setup.py install

It begins successfully, but the final line shows an error: error: [Errno 38] Function not implemented: 'dist/swagger_client-1.0.0-py3.6.egg

Any ideas? Thanks for your help in advance!

question from:https://stackoverflow.com/questions/65905198/unable-to-install-python-swagger-client-using-terminal

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

SOLVED IT!

The egg file it errors on had been copied into the correct location but .egg files are zip files, so it needed to be unzipped in order to be recognised by the Python import function.

so i just used the unzip command in the CLI and it worked like a charm. some sources online say you need to rename your .egg file to a .zip file before unzipping, but i didnt find that to be necessary.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...