我试图安装discord.py,但我得到这个错误。pip立即更新我说。
的数据
我重新安装了python,pip等,我从PythonInterpreter和通过终端安装了pycharm。
× Building wheel for yarl (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [98 lines of output]
C:\Users\User\AppData\Local\Temp\pip-build-env-0gyts2a3\overlay\Lib\site-packages\setuptools\config\setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
**********************
* Accelerated build *
**********************
running bdist_wheel
running build
running build_py
running egg_info
writing yarl.egg-info\PKG-INFO
writing dependency_links to yarl.egg-info\dependency_links.txt
writing requirements to yarl.egg-info\requires.txt
writing top-level names to yarl.egg-info\top_level.txt
reading manifest file 'yarl.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.cache' found anywhere in distribution
warning: no previously-included files found matching 'yarl\*.html'
warning: no previously-included files found matching 'yarl\*.so'
warning: no previously-included files found matching 'yarl\*.pyd'
no previously-included directories found matching 'docs\_build'
adding license file 'LICENSE'
running build_ext
building 'yarl._quoting_c' extension
Traceback (most recent call last):
File "C:\Users\User\PycharmProjects\pythonProject\venv\Lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 351, in <module>
main()
File "C:\Users\User\PycharmProjects\pythonProject\venv\Lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 333, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\PycharmProjects\pythonProject\venv\Lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 249, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Local\Temp\pip-build-env-0gyts2a3\overlay\Lib\site-packages\setuptools\build_meta.py", line 412, in build_wheel
return self._build_with_temp_dir(['bdist_wheel'], '.whl',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Local\Temp\pip-build-env-0gyts2a3\overlay\Lib\site-packages\setuptools\build_meta.py", line 397, in _build_with_temp_dir
self.run_setup()
File "C:\Users\User\AppData\Local\Temp\pip-build-env-0gyts2a3\overlay\Lib\site-packages\setuptools\build_meta.py", line 484, in run_setup
self).run_setup(setup_script=setup_script)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Local\Temp\pip-build-env-0gyts2a3\overlay\Lib\site-packages\setuptools\build_meta.py", line 335, in run_setup
exec(code, locals())
File "<string>", line 86, in <module>
File "C:\Users\User\AppData\Local\Temp\pip-build-env-0gyts2a3\overlay\Lib\site-packages\setuptools\__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Local\Temp\pip-build-env-0gyts2a3\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Local\Temp\pip-build-env-0gyts2a3\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
dist.run_commands()
File "C:\Users\User\AppData\Local\Temp\pip-build-env-0gyts2a3\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 968, in run_commands
self.run_command(cmd)
File "C:\Users\User\AppData\Local\Temp\pip-build-env-0gyts2a3\overlay\Lib\site-packages\setuptools\dist.py", line 1217, in run_command
super().run_command(command)
File "C:\Users\User\AppData\Local\Temp\pip-build-env-0gyts2a3\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
cmd_obj.run()
File "C:\Users\User\AppData\Local\Temp\pip-build-env-0gyts2a3\overlay\Lib\site-packages\wheel\bdist_wheel.py", line 299, in run
self.run_command('build')
File "C:\Users\User\AppData\Local\Temp\pip-build-env-0gyts2a3\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 319, in run_command
self.distribution.run_command(command)
File "C:\Users\User\AppData\Local\Temp\pip-build-env-0gyts2a3\overlay\Lib\site-packages\setuptools\dist.py", line 1217, in run_command
super().run_command(command)
File "C:\Users\User\AppData\Local\Temp\pip-build-env-0gyts2a3\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
cmd_obj.run()
File "C:\Users\User\AppData\Local\Temp\pip-build-env-0gyts2a3\overlay\Lib\site-packages\setuptools\_distutils\command\build.py", line 132, in run
self.run_command(cmd_name)
File "C:\Users\User\AppData\Local\Temp\pip-build-env-0gyts2a3\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 319, in run_command
self.distribution.run_command(command)
File "C:\Users\User\AppData\Local\Temp\pip-build-env-0gyts2a3\overlay\Lib\site-packages\setuptools\dist.py", line 1217, in run_command
super().run_command(command)
File "C:\Users\User\AppData\Local\Temp\pip-build-env-0gyts2a3\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
cmd_obj.run()
File "C:\Users\User\AppData\Local\Temp\pip-build-env-0gyts2a3\overlay\Lib\site-packages\setuptools\command\build_ext.py", line 84, in run
_build_ext.run(self)
File "C:\Users\User\AppData\Local\Temp\pip-build-env-0gyts2a3\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 346, in run
self.build_extensions()
File "C:\Users\User\AppData\Local\Temp\pip-build-env-0gyts2a3\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 466, in build_extensions
self._build_extensions_serial()
File "C:\Users\User\AppData\Local\Temp\pip-build-env-0gyts2a3\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 492, in _build_extensions_serial
self.build_extension(ext)
File "C:\Users\User\AppData\Local\Temp\pip-build-env-0gyts2a3\overlay\Lib\site-packages\setuptools\command\build_ext.py", line 246, in build_extension
_build_ext.build_extension(self, ext)
File "C:\Users\User\AppData\Local\Temp\pip-build-env-0gyts2a3\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 547, in build_extension
objects = self.compiler.compile(
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Local\Temp\pip-build-env-0gyts2a3\overlay\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 344, in compile
self.initialize()
File "C:\Users\User\AppData\Local\Temp\pip-build-env-0gyts2a3\overlay\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 253, in initialize
vc_env = _get_vc_env(plat_spec)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Local\Temp\pip-build-env-0gyts2a3\overlay\Lib\site-packages\setuptools\msvc.py", line 214, in msvc14_get_vc_env
return _msvc14_get_vc_env(plat_spec)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Local\Temp\pip-build-env-0gyts2a3\overlay\Lib\site-packages\setuptools\msvc.py", line 168, in _msvc14_get_vc_env
raise distutils.errors.DistutilsPlatformError(
setuptools._distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for yarl
Failed to build frozenlist multidict yarl
ERROR: Could not build wheels for frozenlist, multidict, yarl, which is required to install pyproject.toml-based projects
字符串
3条答案
按热度按时间eoigrqb61#
您可能需要调查日志中的错误消息:
Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools"
下一篇:Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools"
此外,以下可能是有帮助的。我有这个问题的标题中的错误的确切描述,但对于
aiohttp
,yarl
和frozenlist
模块。以防万一会离开这里遇到的错误和解决方案的描述。下面的错误是我在执行
pip install -r requirements.txt
安装时得到的:字符串
此错误是特定于Python
3.11
版本的。在Python上安装3.10.6
版本正常。为了解决这个问题,我需要更新
requirements.txt
。Python
3.11
的模块版本不工作:型
工作版本:
型
链接到相应的问题与修复:
kkih6yb82#
安装Python 3.10.8版本
iq0todco3#
在Windows 11上安装pandasAI在Python 3.12.0下出错。错误消息告诉我缺少VS C++ Build Tools,但安装这个并没有解决错误。搜索github revealed,真正的错误是aiohtp在Python 3.12上不工作。
因此,我还安装了python 3.11.6,并使用
激活它后,pandasAI的安装进行得非常顺利。在命令框中: