已有184人关注
按照智慧星学生管理系统项目配置使用说明进行操作,在根目录下安装依赖包的时候这个包总错误,不知道怎么解决,求大佬支持
发表在Python图书答疑 2023-06-27 《Python Web开发从入门到实践》第9章 开发基于Django框架的智慧星学生管理系统
是否精华
版块置顶:

(venv) F:\>cd /d pytonproject\student_system


(venv) F:\pytonproject\student_system>pip install -r requirements.txt

Collecting asgiref==3.2.5 (from -r requirements.txt (line 1))

  Using cached asgiref-3.2.5-py2.py3-none-any.whl (19 kB)

Collecting certifi==2018.11.29 (from -r requirements.txt (line 2))

  Using cached certifi-2018.11.29-py2.py3-none-any.whl (154 kB)

Collecting chardet==3.0.4 (from -r requirements.txt (line 3))

  Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)

Collecting Django==3.0.4 (from -r requirements.txt (line 4))

  Using cached Django-3.0.4-py3-none-any.whl (7.5 MB)

Collecting django-shortuuidfield==0.1.3 (from -r requirements.txt (line 5))

  Using cached django-shortuuidfield-0.1.3.tar.gz (3.4 kB)

  Preparing metadata (setup.py) ... done

Collecting furl==1.0.1 (from -r requirements.txt (line 6))

  Using cached furl-1.0.1.tar.gz (40 kB)

  Preparing metadata (setup.py) ... done

Collecting idna==2.6 (from -r requirements.txt (line 7))

  Using cached idna-2.6-py2.py3-none-any.whl (56 kB)

Collecting orderedmultidict==1.0 (from -r requirements.txt (line 8))

  Using cached orderedmultidict-1.0-py2.py3-none-any.whl (11 kB)

Collecting Pillow==7.0.0 (from -r requirements.txt (line 9))

  Using cached Pillow-7.0.0.tar.gz (38.2 MB)

  Preparing metadata (setup.py) ... done

Collecting prettytable==0.7.2 (from -r requirements.txt (line 10))

  Using cached prettytable-0.7.2.zip (28 kB)

  Preparing metadata (setup.py) ... done

Collecting pygame==1.9.6 (from -r requirements.txt (line 11))

  Using cached pygame-1.9.6.tar.gz (3.2 MB)

  Preparing metadata (setup.py) ... error

  error: subprocess-exited-with-error


  × python setup.py egg_info did not run successfully.

  │ exit code: 1

  ╰─> [21 lines of output]



      WARNING, No "Setup" File Exists, Running "buildconfig/config.py"

      Using WINDOWS configuration...



      Download prebuilts to "prebuilt_downloads" and copy to "./prebuilt-x64"? [Y/n]Traceback (most recent call last):

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

        File "<pip-setuptools-caller>", line 34, in <module>

        File "C:\Users\Administrator\AppData\Local\Temp\pip-install-c1mp3mnk\pygame_9a4c0b892e6e48bfabdb2cfdd3e8e243\setup.py", line 194, in <module>

          buildconfig.config.main(AUTO_CONFIG)

        File "C:\Users\Administrator\AppData\Local\Temp\pip-install-c1mp3mnk\pygame_9a4c0b892e6e48bfabdb2cfdd3e8e243\buildconfig\config.py", line 210, in main

          deps = CFG.main(**kwds)

                 ^^^^^^^^^^^^^^^^

        File "C:\Users\Administrator\AppData\Local\Temp\pip-install-c1mp3mnk\pygame_9a4c0b892e6e48bfabdb2cfdd3e8e243\buildconfig\config_win.py", line 576, in main

          and download_win_prebuilt.ask(**download_kwargs):

              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

        File "C:\Users\Administrator\AppData\Local\Temp\pip-install-c1mp3mnk\pygame_9a4c0b892e6e48bfabdb2cfdd3e8e243\buildconfig\download_win_prebuilt.py", line 302, in ask

          reply = raw_input(

                  ^^^^^^^^^^

      EOFError: EOF when reading a line

      [end of output]


  note: This error originates from a subprocess, and is likely not a problem with pip.

error: metadata-generation-failed


× Encountered error while generating package metadata.

╰─> See above for output.


note: This is an issue with the package mentioned above, not pip.

hint: See above for details.


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