python3.12版本下,安装依赖报错
alva-lin opened this issue · comments
Alva commented
环境
Windows 11 23H2 22635
Powershell
Python 3.12.0
在 python 3.12版本下,运行安装脚本 install.ps1
时会报错。
Requirement already satisfied: docker-pycreds>=0.4.0 in XXX\lora-scripts\venv\lib\site-packages (from wandb==0.15.8->-r requirements_win.txt (line 30)) (0.4.0)
Collecting pathtools (from wandb==0.15.8->-r requirements_win.txt (line 30))
Downloading pathtools-0.1.2.tar.gz (11 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\XXX\AppData\Local\Temp\pip-install-hqf0o614\pathtools_d9ab8050637b428eb4ebfd7459c997b0\setup.py", line 25, in <module>
import imp
ModuleNotFoundError: No module named 'imp'
[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.
Install completed
找到了 wandb 库里相关的 issue,把 requirements.txt
和 requirements_win.txt
中的 wandb==0.15.8
改为新版本 wandb==0.16.3
后解决了。