已有183人关注
wsgiref库安装失败
发表在Python图书答疑 2020-09-05 悬赏:2 学分 《零基础学Python》第15章 Web编程 369页-369页
是否精华
版块置顶:

369页里的(3)内容的第一行wsgiref模块无法使用pip安装!

报错信息

ERROR: Command errored out with exit status 1:

     command: 'd:\py\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\admin\\AppData\\Local\\Temp\\pip-install-q1fia6p9\\wsgiref\\setup.py'"'"'; __file__='"'"'C:\\Users\\admin\\AppData\\Local\\Temp\\pip-install-q1fia6p9\\wsgiref\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\admin\AppData\Local\Temp\pip-pip-egg-info-0q0o_iui'

         cwd: C:\Users\admin\AppData\Local\Temp\pip-install-q1fia6p9\wsgiref\

    Complete output (8 lines):

    Traceback (most recent call last):

      File "<string>", line 1, in <module>

      File "C:\Users\admin\AppData\Local\Temp\pip-install-q1fia6p9\wsgiref\setup.py", line 5, in <module>

        import ez_setup

      File "C:\Users\admin\AppData\Local\Temp\pip-install-q1fia6p9\wsgiref\ez_setup\__init__.py", line 170

        print "Setuptools version",version,"or greater has been installed."

              ^

    SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Setuptools version",version,"or greater has been installed.")?

    ----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.


(版本-3.8.1)

2020-09-05 09:20:46编辑
分享到:
精彩评论 2
十四除三余二_1562377421
学分:9 LV1
2020-09-06
沙发

求技术大大解答

andy
学分:2118 LV10
TA的每日心情
继续努力
2017-02-06 23:42:34
2020-09-07
板凳

读者你好:

    wsgiref是python内置的模块,不需要用pip安装。 书中没有提到pip 安装的模块均为内置模块。

首页上一页 1 下一页尾页 2 条记录 1/1页
手机同步功能介绍
友情提示:以下图书配套资源能够实现手机同步功能
明日微信公众号
明日之星 明日之星编程特训营
客服热线(每日9:00-17:00)
400 675 1066
mingrisoft@mingrisoft.com
吉林省明日科技有限公司Copyright ©2007-2022,mingrisoft.com, All Rights Reserved长春市北湖科技开发区盛北大街3333号长春北湖科技园项目一期A10号楼四、五层
吉ICP备10002740号-2吉公网安备22010202000132经营性网站备案信息 营业执照