鱼C论坛

 找回密码
 立即注册
查看: 4331|回复: 25

[已解决]为什么pip安装openai会失败

[复制链接]
发表于 2023-7-4 09:58:42 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
本帖最后由 编程追风梦 于 2023-7-4 10:00 编辑
如题,情况是这样的

cmd终端输入代码
  1. pip install openai
复制代码
完整安装情况如下
  1. Microsoft Windows [版本 10.0.22000.2057]
  2. (c) Microsoft Corporation。保留所有权利。

  3. C:\Users\Administrator>pip install openai
  4. Collecting openai
  5.   Using cached openai-0.27.8-py3-none-any.whl (73 kB)
  6. Requirement already satisfied: requests>=2.20 in c:\users\administrator\appdata\local\programs\python\python312\lib\site-packages (from openai) (2.28.2)
  7. Collecting tqdm (from openai)
  8.   Using cached tqdm-4.65.0-py3-none-any.whl (77 kB)
  9. Collecting aiohttp (from openai)
  10.   Using cached aiohttp-3.8.4.tar.gz (7.3 MB)
  11.   Installing build dependencies ... done
  12.   Getting requirements to build wheel ... done
  13.   Installing backend dependencies ... done
  14.   Preparing metadata (pyproject.toml) ... done
  15. Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\administrator\appdata\local\programs\python\python312\lib\site-packages (from requests>=2.20->openai) (3.1.0)
  16. Requirement already satisfied: idna<4,>=2.5 in c:\users\administrator\appdata\local\programs\python\python312\lib\site-packages (from requests>=2.20->openai) (3.4)
  17. Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\administrator\appdata\local\programs\python\python312\lib\site-packages (from requests>=2.20->openai) (1.26.15)
  18. Requirement already satisfied: certifi>=2017.4.17 in c:\users\administrator\appdata\local\programs\python\python312\lib\site-packages (from requests>=2.20->openai) (2022.12.7)
  19. Collecting attrs>=17.3.0 (from aiohttp->openai)
  20.   Using cached attrs-23.1.0-py3-none-any.whl (61 kB)
  21. Collecting multidict<7.0,>=4.5 (from aiohttp->openai)
  22.   Using cached multidict-6.0.4.tar.gz (51 kB)
  23.   Installing build dependencies ... done
  24.   Getting requirements to build wheel ... done
  25.   Installing backend dependencies ... done
  26.   Preparing metadata (pyproject.toml) ... done
  27. Collecting async-timeout<5.0,>=4.0.0a3 (from aiohttp->openai)
  28.   Using cached async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
  29. Collecting yarl<2.0,>=1.0 (from aiohttp->openai)
  30.   Using cached yarl-1.9.2.tar.gz (184 kB)
  31.   Installing build dependencies ... done
  32.   Getting requirements to build wheel ... done
  33.   Preparing metadata (pyproject.toml) ... done
  34. Collecting frozenlist>=1.1.1 (from aiohttp->openai)
  35.   Using cached frozenlist-1.3.3.tar.gz (66 kB)
  36.   Installing build dependencies ... done
  37.   Getting requirements to build wheel ... done
  38.   Preparing metadata (pyproject.toml) ... done
  39. Collecting aiosignal>=1.1.2 (from aiohttp->openai)
  40.   Using cached aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
  41. Collecting colorama (from tqdm->openai)
  42.   Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
  43. Building wheels for collected packages: aiohttp, frozenlist, multidict, yarl
  44.   Building wheel for aiohttp (pyproject.toml) ... error
  45.   error: subprocess-exited-with-error

  46.   × Building wheel for aiohttp (pyproject.toml) did not run successfully.
  47.   │ exit code: 1
  48.   ╰─> [100 lines of output]
  49.       *********************
  50.       * Accelerated build *
  51.       *********************
  52.       running bdist_wheel
  53.       running build
  54.       running build_py
  55.       creating build
  56.       creating build\lib.win-amd64-cpython-312
  57.       creating build\lib.win-amd64-cpython-312\aiohttp
  58.       copying aiohttp\abc.py -> build\lib.win-amd64-cpython-312\aiohttp
  59.       copying aiohttp\base_protocol.py -> build\lib.win-amd64-cpython-312\aiohttp
  60.       copying aiohttp\client.py -> build\lib.win-amd64-cpython-312\aiohttp
  61.       copying aiohttp\client_exceptions.py -> build\lib.win-amd64-cpython-312\aiohttp
  62.       copying aiohttp\client_proto.py -> build\lib.win-amd64-cpython-312\aiohttp
  63.       copying aiohttp\client_reqrep.py -> build\lib.win-amd64-cpython-312\aiohttp
  64.       copying aiohttp\client_ws.py -> build\lib.win-amd64-cpython-312\aiohttp
  65.       copying aiohttp\connector.py -> build\lib.win-amd64-cpython-312\aiohttp
  66.       copying aiohttp\cookiejar.py -> build\lib.win-amd64-cpython-312\aiohttp
  67.       copying aiohttp\formdata.py -> build\lib.win-amd64-cpython-312\aiohttp
  68.       copying aiohttp\hdrs.py -> build\lib.win-amd64-cpython-312\aiohttp
  69.       copying aiohttp\helpers.py -> build\lib.win-amd64-cpython-312\aiohttp
  70.       copying aiohttp\http.py -> build\lib.win-amd64-cpython-312\aiohttp
  71.       copying aiohttp\http_exceptions.py -> build\lib.win-amd64-cpython-312\aiohttp
  72.       copying aiohttp\http_parser.py -> build\lib.win-amd64-cpython-312\aiohttp
  73.       copying aiohttp\http_websocket.py -> build\lib.win-amd64-cpython-312\aiohttp
  74.       copying aiohttp\http_writer.py -> build\lib.win-amd64-cpython-312\aiohttp
  75.       copying aiohttp\locks.py -> build\lib.win-amd64-cpython-312\aiohttp
  76.       copying aiohttp\log.py -> build\lib.win-amd64-cpython-312\aiohttp
  77.       copying aiohttp\multipart.py -> build\lib.win-amd64-cpython-312\aiohttp
  78.       copying aiohttp\payload.py -> build\lib.win-amd64-cpython-312\aiohttp
  79.       copying aiohttp\payload_streamer.py -> build\lib.win-amd64-cpython-312\aiohttp
  80.       copying aiohttp\pytest_plugin.py -> build\lib.win-amd64-cpython-312\aiohttp
  81.       copying aiohttp\resolver.py -> build\lib.win-amd64-cpython-312\aiohttp
  82.       copying aiohttp\streams.py -> build\lib.win-amd64-cpython-312\aiohttp
  83.       copying aiohttp\tcp_helpers.py -> build\lib.win-amd64-cpython-312\aiohttp
  84.       copying aiohttp\test_utils.py -> build\lib.win-amd64-cpython-312\aiohttp
  85.       copying aiohttp\tracing.py -> build\lib.win-amd64-cpython-312\aiohttp
  86.       copying aiohttp\typedefs.py -> build\lib.win-amd64-cpython-312\aiohttp
  87.       copying aiohttp\web.py -> build\lib.win-amd64-cpython-312\aiohttp
  88.       copying aiohttp\web_app.py -> build\lib.win-amd64-cpython-312\aiohttp
  89.       copying aiohttp\web_exceptions.py -> build\lib.win-amd64-cpython-312\aiohttp
  90.       copying aiohttp\web_fileresponse.py -> build\lib.win-amd64-cpython-312\aiohttp
  91.       copying aiohttp\web_log.py -> build\lib.win-amd64-cpython-312\aiohttp
  92.       copying aiohttp\web_middlewares.py -> build\lib.win-amd64-cpython-312\aiohttp
  93.       copying aiohttp\web_protocol.py -> build\lib.win-amd64-cpython-312\aiohttp
  94.       copying aiohttp\web_request.py -> build\lib.win-amd64-cpython-312\aiohttp
  95.       copying aiohttp\web_response.py -> build\lib.win-amd64-cpython-312\aiohttp
  96.       copying aiohttp\web_routedef.py -> build\lib.win-amd64-cpython-312\aiohttp
  97.       copying aiohttp\web_runner.py -> build\lib.win-amd64-cpython-312\aiohttp
  98.       copying aiohttp\web_server.py -> build\lib.win-amd64-cpython-312\aiohttp
  99.       copying aiohttp\web_urldispatcher.py -> build\lib.win-amd64-cpython-312\aiohttp
  100.       copying aiohttp\web_ws.py -> build\lib.win-amd64-cpython-312\aiohttp
  101.       copying aiohttp\worker.py -> build\lib.win-amd64-cpython-312\aiohttp
  102.       copying aiohttp\__init__.py -> build\lib.win-amd64-cpython-312\aiohttp
  103.       running egg_info
  104.       writing aiohttp.egg-info\PKG-INFO
  105.       writing dependency_links to aiohttp.egg-info\dependency_links.txt
  106.       writing requirements to aiohttp.egg-info\requires.txt
  107.       writing top-level names to aiohttp.egg-info\top_level.txt
  108.       reading manifest file 'aiohttp.egg-info\SOURCES.txt'
  109.       reading manifest template 'MANIFEST.in'
  110.       warning: no files found matching 'aiohttp' anywhere in distribution
  111.       warning: no previously-included files matching '*.pyc' found anywhere in distribution
  112.       warning: no previously-included files matching '*.pyd' found anywhere in distribution
  113.       warning: no previously-included files matching '*.so' found anywhere in distribution
  114.       warning: no previously-included files matching '*.lib' found anywhere in distribution
  115.       warning: no previously-included files matching '*.dll' found anywhere in distribution
  116.       warning: no previously-included files matching '*.a' found anywhere in distribution
  117.       warning: no previously-included files matching '*.obj' found anywhere in distribution
  118.       warning: no previously-included files found matching 'aiohttp\*.html'
  119.       no previously-included directories found matching 'docs\_build'
  120.       adding license file 'LICENSE.txt'
  121.       writing manifest file 'aiohttp.egg-info\SOURCES.txt'
  122.       copying aiohttp\_cparser.pxd -> build\lib.win-amd64-cpython-312\aiohttp
  123.       copying aiohttp\_find_header.pxd -> build\lib.win-amd64-cpython-312\aiohttp
  124.       copying aiohttp\_headers.pxi -> build\lib.win-amd64-cpython-312\aiohttp
  125.       copying aiohttp\_helpers.pyi -> build\lib.win-amd64-cpython-312\aiohttp
  126.       copying aiohttp\_helpers.pyx -> build\lib.win-amd64-cpython-312\aiohttp
  127.       copying aiohttp\_http_parser.pyx -> build\lib.win-amd64-cpython-312\aiohttp
  128.       copying aiohttp\_http_writer.pyx -> build\lib.win-amd64-cpython-312\aiohttp
  129.       copying aiohttp\_websocket.pyx -> build\lib.win-amd64-cpython-312\aiohttp
  130.       copying aiohttp\py.typed -> build\lib.win-amd64-cpython-312\aiohttp
  131.       creating build\lib.win-amd64-cpython-312\aiohttp\.hash
  132.       copying aiohttp\.hash\_cparser.pxd.hash -> build\lib.win-amd64-cpython-312\aiohttp\.hash
  133.       copying aiohttp\.hash\_find_header.pxd.hash -> build\lib.win-amd64-cpython-312\aiohttp\.hash
  134.       copying aiohttp\.hash\_helpers.pyi.hash -> build\lib.win-amd64-cpython-312\aiohttp\.hash
  135.       copying aiohttp\.hash\_helpers.pyx.hash -> build\lib.win-amd64-cpython-312\aiohttp\.hash
  136.       copying aiohttp\.hash\_http_parser.pyx.hash -> build\lib.win-amd64-cpython-312\aiohttp\.hash
  137.       copying aiohttp\.hash\_http_writer.pyx.hash -> build\lib.win-amd64-cpython-312\aiohttp\.hash
  138.       copying aiohttp\.hash\_websocket.pyx.hash -> build\lib.win-amd64-cpython-312\aiohttp\.hash
  139.       copying aiohttp\.hash\hdrs.py.hash -> build\lib.win-amd64-cpython-312\aiohttp\.hash
  140.       running build_ext
  141.       building 'aiohttp._websocket' extension
  142.       creating build\temp.win-amd64-cpython-312
  143.       creating build\temp.win-amd64-cpython-312\Release
  144.       creating build\temp.win-amd64-cpython-312\Release\aiohttp
  145.       "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\Administrator\AppData\Local\Programs\Python\Python312\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python312\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcaiohttp/_websocket.c /Fobuild\temp.win-amd64-cpython-312\Release\aiohttp/_websocket.obj
  146.       _websocket.c
  147.       C:\Users\Administrator\AppData\Local\Programs\Python\Python312\include\pyconfig.h(59): fatal error C1083: 无法打开包括文件: “io.h”: No such file or directory
  148.       error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
  149.       [end of output]

  150.   note: This error originates from a subprocess, and is likely not a problem with pip.
  151.   ERROR: Failed building wheel for aiohttp
  152.   Building wheel for frozenlist (pyproject.toml) ... error
  153.   error: subprocess-exited-with-error

  154.   × Building wheel for frozenlist (pyproject.toml) did not run successfully.
  155.   │ exit code: 1
  156.   ╰─> [39 lines of output]
  157.       *********************
  158.       * Accelerated build *
  159.       *********************
  160.       running bdist_wheel
  161.       running build
  162.       running build_py
  163.       creating build
  164.       creating build\lib.win-amd64-cpython-312
  165.       creating build\lib.win-amd64-cpython-312\frozenlist
  166.       copying frozenlist\__init__.py -> build\lib.win-amd64-cpython-312\frozenlist
  167.       running egg_info
  168.       writing frozenlist.egg-info\PKG-INFO
  169.       writing dependency_links to frozenlist.egg-info\dependency_links.txt
  170.       writing top-level names to frozenlist.egg-info\top_level.txt
  171.       reading manifest file 'frozenlist.egg-info\SOURCES.txt'
  172.       reading manifest template 'MANIFEST.in'
  173.       warning: no previously-included files matching '*.pyc' found anywhere in distribution
  174.       warning: no previously-included files matching '*.pyd' found anywhere in distribution
  175.       warning: no previously-included files matching '*.so' found anywhere in distribution
  176.       warning: no previously-included files matching '*.lib' found anywhere in distribution
  177.       warning: no previously-included files matching '*.dll' found anywhere in distribution
  178.       warning: no previously-included files matching '*.a' found anywhere in distribution
  179.       warning: no previously-included files matching '*.obj' found anywhere in distribution
  180.       warning: no previously-included files found matching 'frozenlist\*.html'
  181.       no previously-included directories found matching 'docs\_build'
  182.       adding license file 'LICENSE'
  183.       writing manifest file 'frozenlist.egg-info\SOURCES.txt'
  184.       copying frozenlist\__init__.pyi -> build\lib.win-amd64-cpython-312\frozenlist
  185.       copying frozenlist\_frozenlist.pyx -> build\lib.win-amd64-cpython-312\frozenlist
  186.       copying frozenlist\py.typed -> build\lib.win-amd64-cpython-312\frozenlist
  187.       running build_ext
  188.       building 'frozenlist._frozenlist' extension
  189.       creating build\temp.win-amd64-cpython-312
  190.       creating build\temp.win-amd64-cpython-312\Release
  191.       creating build\temp.win-amd64-cpython-312\Release\frozenlist
  192.       "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\Administrator\AppData\Local\Programs\Python\Python312\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python312\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcfrozenlist/_frozenlist.c /Fobuild\temp.win-amd64-cpython-312\Release\frozenlist/_frozenlist.obj
  193.       _frozenlist.c
  194.       C:\Users\Administrator\AppData\Local\Programs\Python\Python312\include\pyconfig.h(59): fatal error C1083: 无法打开包括文件: “io.h”: No such file or directory
  195.       error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
  196.       [end of output]

  197.   note: This error originates from a subprocess, and is likely not a problem with pip.
  198.   ERROR: Failed building wheel for frozenlist
  199.   Building wheel for multidict (pyproject.toml) ... error
  200.   error: subprocess-exited-with-error

  201.   × Building wheel for multidict (pyproject.toml) did not run successfully.
  202.   │ exit code: 1
  203.   ╰─> [80 lines of output]
  204.       *********************
  205.       * Accelerated build *
  206.       *********************
  207.       running bdist_wheel
  208.       running build
  209.       running build_py
  210.       creating build
  211.       creating build\lib.win-amd64-cpython-312
  212.       creating build\lib.win-amd64-cpython-312\multidict
  213.       copying multidict\_abc.py -> build\lib.win-amd64-cpython-312\multidict
  214.       copying multidict\_compat.py -> build\lib.win-amd64-cpython-312\multidict
  215.       copying multidict\_multidict_base.py -> build\lib.win-amd64-cpython-312\multidict
  216.       copying multidict\_multidict_py.py -> build\lib.win-amd64-cpython-312\multidict
  217.       copying multidict\__init__.py -> build\lib.win-amd64-cpython-312\multidict
  218.       running egg_info
  219.       writing multidict.egg-info\PKG-INFO
  220.       writing dependency_links to multidict.egg-info\dependency_links.txt
  221.       writing top-level names to multidict.egg-info\top_level.txt
  222.       reading manifest file 'multidict.egg-info\SOURCES.txt'
  223.       reading manifest template 'MANIFEST.in'
  224.       warning: no previously-included files matching '*.pyc' found anywhere in distribution
  225.       warning: no previously-included files found matching 'multidict\_multidict.html'
  226.       warning: no previously-included files found matching 'multidict\*.so'
  227.       warning: no previously-included files found matching 'multidict\*.pyd'
  228.       warning: no previously-included files found matching 'multidict\*.pyd'
  229.       no previously-included directories found matching 'docs\_build'
  230.       adding license file 'LICENSE'
  231.       writing manifest file 'multidict.egg-info\SOURCES.txt'
  232.       C:\Users\Administrator\AppData\Local\Temp\pip-build-env-ynl3swx0\overlay\Lib\site-packages\setuptools\command\build_py.py:201: _Warning: Package 'multidict._multilib' is absent from the `packages` configuration.
  233.       !!

  234.               ********************************************************************************
  235.               ############################
  236.               # Package would be ignored #
  237.               ############################
  238.               Python recognizes 'multidict._multilib' as an importable package[^1],
  239.               but it is absent from setuptools' `packages` configuration.

  240.               This leads to an ambiguous overall configuration. If you want to distribute this
  241.               package, please make sure that 'multidict._multilib' is explicitly added
  242.               to the `packages` configuration field.

  243.               Alternatively, you can also rely on setuptools' discovery methods
  244.               (for example by using `find_namespace_packages(...)`/`find_namespace:`
  245.               instead of `find_packages(...)`/`find:`).

  246.               You can read more about "package discovery" on setuptools documentation page:

  247.               - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

  248.               If you don't want 'multidict._multilib' to be distributed and are
  249.               already explicitly excluding 'multidict._multilib' via
  250.               `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
  251.               you can try to use `exclude_package_data`, or `include-package-data=False` in
  252.               combination with a more fine grained `package-data` configuration.

  253.               You can read more about "package data files" on setuptools documentation page:

  254.               - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


  255.               [^1]: For Python, any directory (with suitable naming) can be imported,
  256.                     even if it does not contain any `.py` files.
  257.                     On the other hand, currently there is no concept of package data
  258.                     directory, all directories are treated like packages.
  259.               ********************************************************************************

  260.       !!
  261.         check.warn(importable)
  262.       copying multidict\__init__.pyi -> build\lib.win-amd64-cpython-312\multidict
  263.       copying multidict\py.typed -> build\lib.win-amd64-cpython-312\multidict
  264.       running build_ext
  265.       building 'multidict._multidict' extension
  266.       creating build\temp.win-amd64-cpython-312
  267.       creating build\temp.win-amd64-cpython-312\Release
  268.       creating build\temp.win-amd64-cpython-312\Release\multidict
  269.       "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\Administrator\AppData\Local\Programs\Python\Python312\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python312\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcmultidict/_multidict.c /Fobuild\temp.win-amd64-cpython-312\Release\multidict/_multidict.obj -O2
  270.       _multidict.c
  271.       C:\Users\Administrator\AppData\Local\Programs\Python\Python312\include\pyconfig.h(59): fatal error C1083: 无法打开包括文件: “io.h”: No such file or directory
  272.       error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
  273.       [end of output]

  274.   note: This error originates from a subprocess, and is likely not a problem with pip.
  275.   ERROR: Failed building wheel for multidict
  276.   Building wheel for yarl (pyproject.toml) ... error
  277.   error: subprocess-exited-with-error

  278.   × Building wheel for yarl (pyproject.toml) did not run successfully.
  279.   │ exit code: 1
  280.   ╰─> [55 lines of output]
  281.       C:\Users\Administrator\AppData\Local\Temp\pip-build-env-ld6l3rw_\overlay\Lib\site-packages\setuptools\config\setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
  282.       !!

  283.               ********************************************************************************
  284.               The license_file parameter is deprecated, use license_files instead.

  285.               By 2023-Oct-30, you need to update your project and remove deprecated calls
  286.               or your builds will no longer be supported.

  287.               See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
  288.               ********************************************************************************

  289.       !!
  290.         parsed = self.parsers.get(option_name, lambda x: x)(value)
  291.       **********************
  292.       * Accelerated build *
  293.       **********************
  294.       running bdist_wheel
  295.       running build
  296.       running build_py
  297.       creating build
  298.       creating build\lib.win-amd64-cpython-312
  299.       creating build\lib.win-amd64-cpython-312\yarl
  300.       copying yarl\_quoting.py -> build\lib.win-amd64-cpython-312\yarl
  301.       copying yarl\_quoting_py.py -> build\lib.win-amd64-cpython-312\yarl
  302.       copying yarl\_url.py -> build\lib.win-amd64-cpython-312\yarl
  303.       copying yarl\__init__.py -> build\lib.win-amd64-cpython-312\yarl
  304.       running egg_info
  305.       writing yarl.egg-info\PKG-INFO
  306.       writing dependency_links to yarl.egg-info\dependency_links.txt
  307.       writing requirements to yarl.egg-info\requires.txt
  308.       writing top-level names to yarl.egg-info\top_level.txt
  309.       reading manifest file 'yarl.egg-info\SOURCES.txt'
  310.       reading manifest template 'MANIFEST.in'
  311.       warning: no previously-included files matching '*.pyc' found anywhere in distribution
  312.       warning: no previously-included files matching '*.cache' found anywhere in distribution
  313.       warning: no previously-included files found matching 'yarl\*.html'
  314.       warning: no previously-included files found matching 'yarl\*.so'
  315.       warning: no previously-included files found matching 'yarl\*.pyd'
  316.       no previously-included directories found matching 'docs\_build'
  317.       adding license file 'LICENSE'
  318.       writing manifest file 'yarl.egg-info\SOURCES.txt'
  319.       copying yarl\__init__.pyi -> build\lib.win-amd64-cpython-312\yarl
  320.       copying yarl\_quoting_c.pyi -> build\lib.win-amd64-cpython-312\yarl
  321.       copying yarl\_quoting_c.pyx -> build\lib.win-amd64-cpython-312\yarl
  322.       copying yarl\py.typed -> build\lib.win-amd64-cpython-312\yarl
  323.       running build_ext
  324.       building 'yarl._quoting_c' extension
  325.       creating build\temp.win-amd64-cpython-312
  326.       creating build\temp.win-amd64-cpython-312\Release
  327.       creating build\temp.win-amd64-cpython-312\Release\yarl
  328.       "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\Administrator\AppData\Local\Programs\Python\Python312\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python312\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcyarl/_quoting_c.c /Fobuild\temp.win-amd64-cpython-312\Release\yarl/_quoting_c.obj
  329.       _quoting_c.c
  330.       C:\Users\Administrator\AppData\Local\Programs\Python\Python312\include\pyconfig.h(59): fatal error C1083: 无法打开包括文件: “io.h”: No such file or directory
  331.       error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
  332.       [end of output]

  333.   note: This error originates from a subprocess, and is likely not a problem with pip.
  334.   ERROR: Failed building wheel for yarl
  335. Failed to build aiohttp frozenlist multidict yarl
  336. ERROR: Could not build wheels for aiohttp, frozenlist, multidict, yarl, which is required to install pyproject.toml-based projects
复制代码

一共有四处报错
分别是:
第一处
  1.   Building wheel for aiohttp (pyproject.toml) ... error
  2.   error: subprocess-exited-with-error

  3.   × Building wheel for aiohttp (pyproject.toml) did not run successfully.
  4.   │ exit code: 1
  5.   ╰─> [100 lines of output]
  6.       *********************
  7.       * Accelerated build *
  8.       *********************
  9.       running bdist_wheel
  10.       running build
  11.       running build_py
  12.       creating build
  13.       creating build\lib.win-amd64-cpython-312
  14.       creating build\lib.win-amd64-cpython-312\aiohttp
  15.       copying aiohttp\abc.py -> build\lib.win-amd64-cpython-312\aiohttp
  16.       copying aiohttp\base_protocol.py -> build\lib.win-amd64-cpython-312\aiohttp
  17.       copying aiohttp\client.py -> build\lib.win-amd64-cpython-312\aiohttp
  18.       copying aiohttp\client_exceptions.py -> build\lib.win-amd64-cpython-312\aiohttp
  19.       copying aiohttp\client_proto.py -> build\lib.win-amd64-cpython-312\aiohttp
  20.       copying aiohttp\client_reqrep.py -> build\lib.win-amd64-cpython-312\aiohttp
  21.       copying aiohttp\client_ws.py -> build\lib.win-amd64-cpython-312\aiohttp
  22.       copying aiohttp\connector.py -> build\lib.win-amd64-cpython-312\aiohttp
  23.       copying aiohttp\cookiejar.py -> build\lib.win-amd64-cpython-312\aiohttp
  24.       copying aiohttp\formdata.py -> build\lib.win-amd64-cpython-312\aiohttp
  25.       copying aiohttp\hdrs.py -> build\lib.win-amd64-cpython-312\aiohttp
  26.       copying aiohttp\helpers.py -> build\lib.win-amd64-cpython-312\aiohttp
  27.       copying aiohttp\http.py -> build\lib.win-amd64-cpython-312\aiohttp
  28.       copying aiohttp\http_exceptions.py -> build\lib.win-amd64-cpython-312\aiohttp
  29.       copying aiohttp\http_parser.py -> build\lib.win-amd64-cpython-312\aiohttp
  30.       copying aiohttp\http_websocket.py -> build\lib.win-amd64-cpython-312\aiohttp
  31.       copying aiohttp\http_writer.py -> build\lib.win-amd64-cpython-312\aiohttp
  32.       copying aiohttp\locks.py -> build\lib.win-amd64-cpython-312\aiohttp
  33.       copying aiohttp\log.py -> build\lib.win-amd64-cpython-312\aiohttp
  34.       copying aiohttp\multipart.py -> build\lib.win-amd64-cpython-312\aiohttp
  35.       copying aiohttp\payload.py -> build\lib.win-amd64-cpython-312\aiohttp
  36.       copying aiohttp\payload_streamer.py -> build\lib.win-amd64-cpython-312\aiohttp
  37.       copying aiohttp\pytest_plugin.py -> build\lib.win-amd64-cpython-312\aiohttp
  38.       copying aiohttp\resolver.py -> build\lib.win-amd64-cpython-312\aiohttp
  39.       copying aiohttp\streams.py -> build\lib.win-amd64-cpython-312\aiohttp
  40.       copying aiohttp\tcp_helpers.py -> build\lib.win-amd64-cpython-312\aiohttp
  41.       copying aiohttp\test_utils.py -> build\lib.win-amd64-cpython-312\aiohttp
  42.       copying aiohttp\tracing.py -> build\lib.win-amd64-cpython-312\aiohttp
  43.       copying aiohttp\typedefs.py -> build\lib.win-amd64-cpython-312\aiohttp
  44.       copying aiohttp\web.py -> build\lib.win-amd64-cpython-312\aiohttp
  45.       copying aiohttp\web_app.py -> build\lib.win-amd64-cpython-312\aiohttp
  46.       copying aiohttp\web_exceptions.py -> build\lib.win-amd64-cpython-312\aiohttp
  47.       copying aiohttp\web_fileresponse.py -> build\lib.win-amd64-cpython-312\aiohttp
  48.       copying aiohttp\web_log.py -> build\lib.win-amd64-cpython-312\aiohttp
  49.       copying aiohttp\web_middlewares.py -> build\lib.win-amd64-cpython-312\aiohttp
  50.       copying aiohttp\web_protocol.py -> build\lib.win-amd64-cpython-312\aiohttp
  51.       copying aiohttp\web_request.py -> build\lib.win-amd64-cpython-312\aiohttp
  52.       copying aiohttp\web_response.py -> build\lib.win-amd64-cpython-312\aiohttp
  53.       copying aiohttp\web_routedef.py -> build\lib.win-amd64-cpython-312\aiohttp
  54.       copying aiohttp\web_runner.py -> build\lib.win-amd64-cpython-312\aiohttp
  55.       copying aiohttp\web_server.py -> build\lib.win-amd64-cpython-312\aiohttp
  56.       copying aiohttp\web_urldispatcher.py -> build\lib.win-amd64-cpython-312\aiohttp
  57.       copying aiohttp\web_ws.py -> build\lib.win-amd64-cpython-312\aiohttp
  58.       copying aiohttp\worker.py -> build\lib.win-amd64-cpython-312\aiohttp
  59.       copying aiohttp\__init__.py -> build\lib.win-amd64-cpython-312\aiohttp
  60.       running egg_info
  61.       writing aiohttp.egg-info\PKG-INFO
  62.       writing dependency_links to aiohttp.egg-info\dependency_links.txt
  63.       writing requirements to aiohttp.egg-info\requires.txt
  64.       writing top-level names to aiohttp.egg-info\top_level.txt
  65.       reading manifest file 'aiohttp.egg-info\SOURCES.txt'
  66.       reading manifest template 'MANIFEST.in'
  67.       warning: no files found matching 'aiohttp' anywhere in distribution
  68.       warning: no previously-included files matching '*.pyc' found anywhere in distribution
  69.       warning: no previously-included files matching '*.pyd' found anywhere in distribution
  70.       warning: no previously-included files matching '*.so' found anywhere in distribution
  71.       warning: no previously-included files matching '*.lib' found anywhere in distribution
  72.       warning: no previously-included files matching '*.dll' found anywhere in distribution
  73.       warning: no previously-included files matching '*.a' found anywhere in distribution
  74.       warning: no previously-included files matching '*.obj' found anywhere in distribution
  75.       warning: no previously-included files found matching 'aiohttp\*.html'
  76.       no previously-included directories found matching 'docs\_build'
  77.       adding license file 'LICENSE.txt'
  78.       writing manifest file 'aiohttp.egg-info\SOURCES.txt'
  79.       copying aiohttp\_cparser.pxd -> build\lib.win-amd64-cpython-312\aiohttp
  80.       copying aiohttp\_find_header.pxd -> build\lib.win-amd64-cpython-312\aiohttp
  81.       copying aiohttp\_headers.pxi -> build\lib.win-amd64-cpython-312\aiohttp
  82.       copying aiohttp\_helpers.pyi -> build\lib.win-amd64-cpython-312\aiohttp
  83.       copying aiohttp\_helpers.pyx -> build\lib.win-amd64-cpython-312\aiohttp
  84.       copying aiohttp\_http_parser.pyx -> build\lib.win-amd64-cpython-312\aiohttp
  85.       copying aiohttp\_http_writer.pyx -> build\lib.win-amd64-cpython-312\aiohttp
  86.       copying aiohttp\_websocket.pyx -> build\lib.win-amd64-cpython-312\aiohttp
  87.       copying aiohttp\py.typed -> build\lib.win-amd64-cpython-312\aiohttp
  88.       creating build\lib.win-amd64-cpython-312\aiohttp\.hash
  89.       copying aiohttp\.hash\_cparser.pxd.hash -> build\lib.win-amd64-cpython-312\aiohttp\.hash
  90.       copying aiohttp\.hash\_find_header.pxd.hash -> build\lib.win-amd64-cpython-312\aiohttp\.hash
  91.       copying aiohttp\.hash\_helpers.pyi.hash -> build\lib.win-amd64-cpython-312\aiohttp\.hash
  92.       copying aiohttp\.hash\_helpers.pyx.hash -> build\lib.win-amd64-cpython-312\aiohttp\.hash
  93.       copying aiohttp\.hash\_http_parser.pyx.hash -> build\lib.win-amd64-cpython-312\aiohttp\.hash
  94.       copying aiohttp\.hash\_http_writer.pyx.hash -> build\lib.win-amd64-cpython-312\aiohttp\.hash
  95.       copying aiohttp\.hash\_websocket.pyx.hash -> build\lib.win-amd64-cpython-312\aiohttp\.hash
  96.       copying aiohttp\.hash\hdrs.py.hash -> build\lib.win-amd64-cpython-312\aiohttp\.hash
  97.       running build_ext
  98.       building 'aiohttp._websocket' extension
  99.       creating build\temp.win-amd64-cpython-312
  100.       creating build\temp.win-amd64-cpython-312\Release
  101.       creating build\temp.win-amd64-cpython-312\Release\aiohttp
  102.       "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\Administrator\AppData\Local\Programs\Python\Python312\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python312\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcaiohttp/_websocket.c /Fobuild\temp.win-amd64-cpython-312\Release\aiohttp/_websocket.obj
  103.       _websocket.c
  104.       C:\Users\Administrator\AppData\Local\Programs\Python\Python312\include\pyconfig.h(59): fatal error C1083: 无法打开包括文件: “io.h”: No such file or directory
  105.       error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
  106.       [end of output]
复制代码


第二处
  1. note: This error originates from a subprocess, and is likely not a problem with pip.
  2.   ERROR: Failed building wheel for aiohttp
  3.   Building wheel for frozenlist (pyproject.toml) ... error
  4.   error: subprocess-exited-with-error

  5.   × Building wheel for frozenlist (pyproject.toml) did not run successfully.
  6.   │ exit code: 1
  7.   ╰─> [39 lines of output]
  8.       *********************
  9.       * Accelerated build *
  10.       *********************
  11.       running bdist_wheel
  12.       running build
  13.       running build_py
  14.       creating build
  15.       creating build\lib.win-amd64-cpython-312
  16.       creating build\lib.win-amd64-cpython-312\frozenlist
  17.       copying frozenlist\__init__.py -> build\lib.win-amd64-cpython-312\frozenlist
  18.       running egg_info
  19.       writing frozenlist.egg-info\PKG-INFO
  20.       writing dependency_links to frozenlist.egg-info\dependency_links.txt
  21.       writing top-level names to frozenlist.egg-info\top_level.txt
  22.       reading manifest file 'frozenlist.egg-info\SOURCES.txt'
  23.       reading manifest template 'MANIFEST.in'
  24.       warning: no previously-included files matching '*.pyc' found anywhere in distribution
  25.       warning: no previously-included files matching '*.pyd' found anywhere in distribution
  26.       warning: no previously-included files matching '*.so' found anywhere in distribution
  27.       warning: no previously-included files matching '*.lib' found anywhere in distribution
  28.       warning: no previously-included files matching '*.dll' found anywhere in distribution
  29.       warning: no previously-included files matching '*.a' found anywhere in distribution
  30.       warning: no previously-included files matching '*.obj' found anywhere in distribution
  31.       warning: no previously-included files found matching 'frozenlist\*.html'
  32.       no previously-included directories found matching 'docs\_build'
  33.       adding license file 'LICENSE'
  34.       writing manifest file 'frozenlist.egg-info\SOURCES.txt'
  35.       copying frozenlist\__init__.pyi -> build\lib.win-amd64-cpython-312\frozenlist
  36.       copying frozenlist\_frozenlist.pyx -> build\lib.win-amd64-cpython-312\frozenlist
  37.       copying frozenlist\py.typed -> build\lib.win-amd64-cpython-312\frozenlist
  38.       running build_ext
  39.       building 'frozenlist._frozenlist' extension
  40.       creating build\temp.win-amd64-cpython-312
  41.       creating build\temp.win-amd64-cpython-312\Release
  42.       creating build\temp.win-amd64-cpython-312\Release\frozenlist
  43.       "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\Administrator\AppData\Local\Programs\Python\Python312\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python312\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcfrozenlist/_frozenlist.c /Fobuild\temp.win-amd64-cpython-312\Release\frozenlist/_frozenlist.obj
  44.       _frozenlist.c
  45.       C:\Users\Administrator\AppData\Local\Programs\Python\Python312\include\pyconfig.h(59): fatal error C1083: 无法打开包括文件: “io.h”: No such file or directory
  46.       error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
  47.       [end of output]
复制代码
第三处
  1. note: This error originates from a subprocess, and is likely not a problem with pip.
  2.   ERROR: Failed building wheel for frozenlist
  3.   Building wheel for multidict (pyproject.toml) ... error
  4.   error: subprocess-exited-with-error

  5.   × Building wheel for multidict (pyproject.toml) did not run successfully.
  6.   │ exit code: 1
  7.   ╰─> [80 lines of output]
  8.       *********************
  9.       * Accelerated build *
  10.       *********************
  11.       running bdist_wheel
  12.       running build
  13.       running build_py
  14.       creating build
  15.       creating build\lib.win-amd64-cpython-312
  16.       creating build\lib.win-amd64-cpython-312\multidict
  17.       copying multidict\_abc.py -> build\lib.win-amd64-cpython-312\multidict
  18.       copying multidict\_compat.py -> build\lib.win-amd64-cpython-312\multidict
  19.       copying multidict\_multidict_base.py -> build\lib.win-amd64-cpython-312\multidict
  20.       copying multidict\_multidict_py.py -> build\lib.win-amd64-cpython-312\multidict
  21.       copying multidict\__init__.py -> build\lib.win-amd64-cpython-312\multidict
  22.       running egg_info
  23.       writing multidict.egg-info\PKG-INFO
  24.       writing dependency_links to multidict.egg-info\dependency_links.txt
  25.       writing top-level names to multidict.egg-info\top_level.txt
  26.       reading manifest file 'multidict.egg-info\SOURCES.txt'
  27.       reading manifest template 'MANIFEST.in'
  28.       warning: no previously-included files matching '*.pyc' found anywhere in distribution
  29.       warning: no previously-included files found matching 'multidict\_multidict.html'
  30.       warning: no previously-included files found matching 'multidict\*.so'
  31.       warning: no previously-included files found matching 'multidict\*.pyd'
  32.       warning: no previously-included files found matching 'multidict\*.pyd'
  33.       no previously-included directories found matching 'docs\_build'
  34.       adding license file 'LICENSE'
  35.       writing manifest file 'multidict.egg-info\SOURCES.txt'
  36.       C:\Users\Administrator\AppData\Local\Temp\pip-build-env-ynl3swx0\overlay\Lib\site-packages\setuptools\command\build_py.py:201: _Warning: Package 'multidict._multilib' is absent from the `packages` configuration.
  37.       !!

  38.               ********************************************************************************
  39.               ############################
  40.               # Package would be ignored #
  41.               ############################
  42.               Python recognizes 'multidict._multilib' as an importable package[^1],
  43.               but it is absent from setuptools' `packages` configuration.

  44.               This leads to an ambiguous overall configuration. If you want to distribute this
  45.               package, please make sure that 'multidict._multilib' is explicitly added
  46.               to the `packages` configuration field.

  47.               Alternatively, you can also rely on setuptools' discovery methods
  48.               (for example by using `find_namespace_packages(...)`/`find_namespace:`
  49.               instead of `find_packages(...)`/`find:`).

  50.               You can read more about "package discovery" on setuptools documentation page:

  51.               - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

  52.               If you don't want 'multidict._multilib' to be distributed and are
  53.               already explicitly excluding 'multidict._multilib' via
  54.               `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
  55.               you can try to use `exclude_package_data`, or `include-package-data=False` in
  56.               combination with a more fine grained `package-data` configuration.

  57.               You can read more about "package data files" on setuptools documentation page:

  58.               - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


  59.               [^1]: For Python, any directory (with suitable naming) can be imported,
  60.                     even if it does not contain any `.py` files.
  61.                     On the other hand, currently there is no concept of package data
  62.                     directory, all directories are treated like packages.
  63.               ********************************************************************************

  64.       !!
  65.         check.warn(importable)
  66.       copying multidict\__init__.pyi -> build\lib.win-amd64-cpython-312\multidict
  67.       copying multidict\py.typed -> build\lib.win-amd64-cpython-312\multidict
  68.       running build_ext
  69.       building 'multidict._multidict' extension
  70.       creating build\temp.win-amd64-cpython-312
  71.       creating build\temp.win-amd64-cpython-312\Release
  72.       creating build\temp.win-amd64-cpython-312\Release\multidict
  73.       "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\Administrator\AppData\Local\Programs\Python\Python312\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python312\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcmultidict/_multidict.c /Fobuild\temp.win-amd64-cpython-312\Release\multidict/_multidict.obj -O2
  74.       _multidict.c
  75.       C:\Users\Administrator\AppData\Local\Programs\Python\Python312\include\pyconfig.h(59): fatal error C1083: 无法打开包括文件: “io.h”: No such file or directory
  76.       error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
  77.       [end of output]
复制代码
第四处

  1.   note: This error originates from a subprocess, and is likely not a problem with pip.
  2.   ERROR: Failed building wheel for multidict
  3.   Building wheel for yarl (pyproject.toml) ... error
  4.   error: subprocess-exited-with-error

  5.   × Building wheel for yarl (pyproject.toml) did not run successfully.
  6.   │ exit code: 1
  7.   ╰─> [55 lines of output]
  8.       C:\Users\Administrator\AppData\Local\Temp\pip-build-env-ld6l3rw_\overlay\Lib\site-packages\setuptools\config\setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
  9.       !!

  10.               ********************************************************************************
  11.               The license_file parameter is deprecated, use license_files instead.

  12.               By 2023-Oct-30, you need to update your project and remove deprecated calls
  13.               or your builds will no longer be supported.

  14.               See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
  15.               ********************************************************************************

  16.       !!
  17.         parsed = self.parsers.get(option_name, lambda x: x)(value)
  18.       **********************
  19.       * Accelerated build *
  20.       **********************
  21.       running bdist_wheel
  22.       running build
  23.       running build_py
  24.       creating build
  25.       creating build\lib.win-amd64-cpython-312
  26.       creating build\lib.win-amd64-cpython-312\yarl
  27.       copying yarl\_quoting.py -> build\lib.win-amd64-cpython-312\yarl
  28.       copying yarl\_quoting_py.py -> build\lib.win-amd64-cpython-312\yarl
  29.       copying yarl\_url.py -> build\lib.win-amd64-cpython-312\yarl
  30.       copying yarl\__init__.py -> build\lib.win-amd64-cpython-312\yarl
  31.       running egg_info
  32.       writing yarl.egg-info\PKG-INFO
  33.       writing dependency_links to yarl.egg-info\dependency_links.txt
  34.       writing requirements to yarl.egg-info\requires.txt
  35.       writing top-level names to yarl.egg-info\top_level.txt
  36.       reading manifest file 'yarl.egg-info\SOURCES.txt'
  37.       reading manifest template 'MANIFEST.in'
  38.       warning: no previously-included files matching '*.pyc' found anywhere in distribution
  39.       warning: no previously-included files matching '*.cache' found anywhere in distribution
  40.       warning: no previously-included files found matching 'yarl\*.html'
  41.       warning: no previously-included files found matching 'yarl\*.so'
  42.       warning: no previously-included files found matching 'yarl\*.pyd'
  43.       no previously-included directories found matching 'docs\_build'
  44.       adding license file 'LICENSE'
  45.       writing manifest file 'yarl.egg-info\SOURCES.txt'
  46.       copying yarl\__init__.pyi -> build\lib.win-amd64-cpython-312\yarl
  47.       copying yarl\_quoting_c.pyi -> build\lib.win-amd64-cpython-312\yarl
  48.       copying yarl\_quoting_c.pyx -> build\lib.win-amd64-cpython-312\yarl
  49.       copying yarl\py.typed -> build\lib.win-amd64-cpython-312\yarl
  50.       running build_ext
  51.       building 'yarl._quoting_c' extension
  52.       creating build\temp.win-amd64-cpython-312
  53.       creating build\temp.win-amd64-cpython-312\Release
  54.       creating build\temp.win-amd64-cpython-312\Release\yarl
  55.       "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\Administrator\AppData\Local\Programs\Python\Python312\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python312\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcyarl/_quoting_c.c /Fobuild\temp.win-amd64-cpython-312\Release\yarl/_quoting_c.obj
  56.       _quoting_c.c
  57.       C:\Users\Administrator\AppData\Local\Programs\Python\Python312\include\pyconfig.h(59): fatal error C1083: 无法打开包括文件: “io.h”: No such file or directory
  58.       error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
  59.       [end of output]

  60.   note: This error originates from a subprocess, and is likely not a problem with pip.
  61.   ERROR: Failed building wheel for yarl
  62. Failed to build aiohttp frozenlist multidict yarl
  63. ERROR: Could not build wheels for aiohttp, frozenlist, multidict, yarl, which is required to install pyproject.toml-based projects
复制代码


尝试安装VS并解决该问题,无效
尝试安装Microsoft Visual C++ 14.0运行库(安装链接
显示报错

安装报错信息

安装报错信息


尝试解决报错问题,卸载掉电脑里面名为“Microsoft Visual 2008”的旧版文件,确认移除所有旧版威胁文件,依然没有用
被告知其他人都行,就我不行(崩溃大哭

决定找一个非Chatgpt官方接口,然后.........看到了今天早上我的一篇回答

问题

问题


回答

回答


报应来的这么快???
如果能解决问题,必有重谢
@高山 @zhangjinxuan @不二如是 @isdkz @学习编程中的Ben @sfqxx @python爱好者. @jackz007 @元豪

最佳答案
2023-7-4 10:07:35
  1. pip install openai --only-binary multidict --only-binary aiohttp
复制代码
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2023-7-4 10:00:04 | 显示全部楼层
我已经找到接口了
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2023-7-4 10:00:32 | 显示全部楼层
陶远航 发表于 2023-7-4 10:00
我已经找到接口了

!!!!!!救命恩人!!!!!!!
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2023-7-4 10:00:56 | 显示全部楼层
陶远航 发表于 2023-7-4 10:00
我已经找到接口了

事成之后,给你100梦想币加上我目前全部的鱼币!
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2023-7-4 10:03:55 | 显示全部楼层
编程追风梦 发表于 2023-7-4 10:00
事成之后,给你100梦想币加上我目前全部的鱼币!

《出尔反尔》

你这个问题我也不知道怎么办,难道他只能通过 VS 来运行吗?只是正常的 C++ 编译器可不可以呢?
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2023-7-4 10:07:35 | 显示全部楼层    本楼为最佳答案   
  1. pip install openai --only-binary multidict --only-binary aiohttp
复制代码
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2023-7-4 10:08:11 | 显示全部楼层
zhangjinxuan 发表于 2023-7-4 10:03
《出尔反尔》

你这个问题我也不知道怎么办,难道他只能通过 VS 来运行吗?只是正常的 C++ 编译器可不 ...

可是cmd就这么一个啊
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2023-7-4 10:09:28 | 显示全部楼层
陶远航 发表于 2023-7-4 10:00
我已经找到接口了

恭喜你神功大成
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2023-7-4 10:10:15 | 显示全部楼层
编程追风梦 发表于 2023-7-4 10:08
可是cmd就这么一个啊

不需要C++编译器,用我给你的命令就可以安装成功
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2023-7-4 10:12:00 | 显示全部楼层
编程追风梦 发表于 2023-7-4 10:08
可是cmd就这么一个啊

???
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2023-7-4 10:28:23 | 显示全部楼层
isdkz 发表于 2023-7-4 10:10
不需要C++编译器,用我给你的命令就可以安装成功

成功的!






























安装失败了
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2023-7-4 10:29:03 | 显示全部楼层

我不管使用那个编译器都要用cmd安装openai
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2023-7-4 10:32:45 | 显示全部楼层

那给个最佳答案呗
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2023-7-4 10:32:52 | 显示全部楼层
isdkz 发表于 2023-7-4 10:09
恭喜你神功大成

呜呜呜,不讲武德
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2023-7-4 10:33:57 | 显示全部楼层
sfqxx 发表于 2023-7-4 10:32
呜呜呜,不讲武德

我咋不讲武德了?我现在也没用机器人,而且我又没教他
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2023-7-4 10:34:08 | 显示全部楼层
isdkz 发表于 2023-7-4 10:32
那给个最佳答案呗

往下翻翻,我的回复是:成功的失败了
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2023-7-4 10:34:31 | 显示全部楼层
isdkz 发表于 2023-7-4 10:33
我咋不讲武德了?我现在也没用机器人,而且我又没教他

搞错了,回复错了,应该是陶远航
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2023-7-4 10:35:05 | 显示全部楼层
isdkz 发表于 2023-7-4 10:32
那给个最佳答案呗

这样吧,给你最佳可以,但是你得加入梦想论坛,帮我们提高热度和发帖
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2023-7-4 10:35:28 | 显示全部楼层
编程追风梦 发表于 2023-7-4 10:34
往下翻翻,我的回复是:成功的失败了

用我这个命令没有安装成功吗?

  1. pip install openai --only-binary multidict --only-binary aiohttp
复制代码

小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2023-7-4 10:36:21 | 显示全部楼层
编程追风梦 发表于 2023-7-4 10:35
这样吧,给你最佳可以,但是你得加入梦想论坛,帮我们提高热度和发帖

咋还有条件嘞,求助帖不是应该解决问题吗?
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-4-25 13:31

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表