Open rainzee opened 10 months ago
使用 uv 安装报错如下
Workspace\Python\pure via 🐍 v3.11.9 (pure) took 8s
❯ uv pip install -i https://mirrors.bfsu.edu.cn/pypi/web/simple --upgrade purepress
Resolved 18 packages in 14ms
error: Failed to download distributions
Caused by: Failed to fetch wheel: pyyaml==5.4.1
Caused by: Failed to build: `pyyaml==5.4.1`
Caused by: Build backend failed to determine extra requires with `build_wheel()` with exit code: 1
--- stdout:
running egg_info
writing lib3\PyYAML.egg-info\PKG-INFO
writing dependency_links to lib3\PyYAML.egg-info\dependency_links.txt
writing top-level names to lib3\PyYAML.egg-info\top_level.txt
--- stderr:
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "C:\Users\rainzee\AppData\Local\uv\cache\.tmpY9LHcp\.venv\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\rainzee\AppData\Local\uv\cache\.tmpY9LHcp\.venv\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "C:\Users\rainzee\AppData\Local\uv\cache\.tmpY9LHcp\.venv\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
exec(code, locals())
File "<string>", line 271, in <module>
File "C:\Users\rainzee\AppData\Local\uv\cache\.tmpY9LHcp\.venv\Lib\site-packages\setuptools\__init__.py", line 103, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\rainzee\AppData\Local\uv\cache\.tmpY9LHcp\.venv\Lib\site-packages\setuptools\_distutils\core.py", line 184, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "C:\Users\rainzee\AppData\Local\uv\cache\.tmpY9LHcp\.venv\Lib\site-packages\setuptools\_distutils\core.py", line 200, in run_commands
dist.run_commands()
File "C:\Users\rainzee\AppData\Local\uv\cache\.tmpY9LHcp\.venv\Lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
self.run_command(cmd)
File "C:\Users\rainzee\AppData\Local\uv\cache\.tmpY9LHcp\.venv\Lib\site-packages\setuptools\dist.py", line 968, in run_command
super().run_command(command)
File "C:\Users\rainzee\AppData\Local\uv\cache\.tmpY9LHcp\.venv\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\rainzee\AppData\Local\uv\cache\.tmpY9LHcp\.venv\Lib\site-packages\setuptools\command\egg_info.py", line 321, in run
self.find_sources()
File "C:\Users\rainzee\AppData\Local\uv\cache\.tmpY9LHcp\.venv\Lib\site-packages\setuptools\command\egg_info.py", line 329, in find_sources
mm.run()
File "C:\Users\rainzee\AppData\Local\uv\cache\.tmpY9LHcp\.venv\Lib\site-packages\setuptools\command\egg_info.py", line 550, in run
self.add_defaults()
File "C:\Users\rainzee\AppData\Local\uv\cache\.tmpY9LHcp\.venv\Lib\site-packages\setuptools\command\egg_info.py", line 588, in add_defaults
sdist.add_defaults(self)
File "C:\Users\rainzee\AppData\Local\uv\cache\.tmpY9LHcp\.venv\Lib\site-packages\setuptools\command\sdist.py", line 102, in add_defaults
super().add_defaults()
File "C:\Users\rainzee\AppData\Local\uv\cache\.tmpY9LHcp\.venv\Lib\site-packages\setuptools\_distutils\command\sdist.py", line 250, in add_defaults
self._add_defaults_ext()
File "C:\Users\rainzee\AppData\Local\uv\cache\.tmpY9LHcp\.venv\Lib\site-packages\setuptools\_distutils\command\sdist.py", line 335, in _add_defaults_ext
self.filelist.extend(build_ext.get_source_files())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 201, in get_source_files
File "C:\Users\rainzee\AppData\Local\uv\cache\.tmpY9LHcp\.venv\Lib\site-packages\setuptools\_distutils\cmd.py", line 107, in __getattr__
raise AttributeError(attr)
AttributeError: cython_sources
---
@rainzee ,要去virtualenv里面安装,基本上就没什么问题
@rainzee ,要去virtualenv里面安装,基本上就没什么问题
额,跟这个有什么关系吗,另外我就是在 venv 中啊
安装失败,Python 版本 3.11.9,系统为 Windows 10,在 MacOS 下依旧安装失败,具体报错如下