после запуска команды клонирования и активации необходимого venv (да, я запускаю команды в активированном venv, если быть точным, мой env находится в anaconda3/envs и его имя yoloe, а я запускаю venv из другого места, поэтому моя оболочка выглядит как (yoloe) D:\place_where_my_code_is_stored, пожалуйста не сочтите меня нубом, который даже не активирует свой venv) Python 3.10, осталось только установить требования:
Код: Выделить всё
pip install -r requirements.txtКод: Выделить всё
Obtaining file:///D:/code/yoloe (from -r requirements.txt (line 1))
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build editable ... done
Preparing editable metadata (pyproject.toml) ... done
Obtaining file:///D:/code/yoloe/third_party/lvis-api (from -r requirements.txt (line 2))
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build editable ... error
error: subprocess-exited-with-error
× Getting requirements to build editable did not run successfully.
│ exit code: 1
╰─> [19 lines of output]
Traceback (most recent call last):
File "D:\ProgramData\anaconda3\envs\yoloe\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in
main()
File "D:\ProgramData\anaconda3\envs\yoloe\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
File "D:\ProgramData\anaconda3\envs\yoloe\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 157, in get_requires_for_build_editable
return hook(config_settings)
File "C:\Users\jeffg\AppData\Local\Temp\pip-build-env-iyul_9eb\overlay\Lib\site-packages\setuptools\build_meta.py", line 481, in get_requires_for_build_editable
return self.get_requires_for_build_wheel(config_settings)
File "C:\Users\jeffg\AppData\Local\Temp\pip-build-env-iyul_9eb\overlay\Lib\site-packages\setuptools\build_meta.py", line 333, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
File "C:\Users\jeffg\AppData\Local\Temp\pip-build-env-iyul_9eb\overlay\Lib\site-packages\setuptools\build_meta.py", line 301, in _get_build_requires
self.run_setup()
File "C:\Users\jeffg\AppData\Local\Temp\pip-build-env-iyul_9eb\overlay\Lib\site-packages\setuptools\build_meta.py", line 520, in run_setup
super().run_setup(setup_script=setup_script)
File "C:\Users\jeffg\AppData\Local\Temp\pip-build-env-iyul_9eb\overlay\Lib\site-packages\setuptools\build_meta.py", line 317, in run_setup
exec(code, locals())
File "", line 10, in
ModuleNotFoundError: No module named 'pip'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'file:///D:/code/yoloe/third_party/lvis-api' when getting requirements to build editable
Код: Выделить всё
Package Version
---------- -------
packaging 25.0
pip 26.0.1
setuptools 80.10.2
wheel 0.46.3
Код: Выделить всё
channels:
- defaults
show_channel_urls: true
envs_dirs:
- D:\ProgramData\anaconda3\envs
pkgs_dirs:
- D:\ProgramData\anaconda3\pkgs
Код: Выделить всё
active environment : yoloe
active env location : D:\ProgramData\anaconda3\envs\yoloe
shell level : 2
user config file : C:\Users\jeffg\.condarc
populated config files : D:\ProgramData\anaconda3\.condarc
C:\Users\jeffg\.condarc
conda version : 26.1.1
conda-build version : 25.11.1
python version : 3.13.9.final.0
solver : libmamba (default)
virtual packages : __archspec=1=skylake
__conda=26.1.1=0
__cuda=13.1=0
__win=10.0.26200=0
base environment : D:\ProgramData\anaconda3 (writable)
conda av data dir : D:\ProgramData\anaconda3\etc\conda
conda av metadata url : None
channel URLs : https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch
package cache : D:\ProgramData\anaconda3\pkgs
envs directories : D:\ProgramData\anaconda3\envs
C:\Users\jeffg\.conda\envs
C:\Users\jeffg\AppData\Local\conda\conda\envs
temporary directory : C:\Users\jeffg\AppData\Local\Temp
platform : win-64
user-agent : conda/26.1.1 requests/2.32.5 CPython/3.13.9 Windows/11 Windows/10.0.26200 solver/libmamba conda-libmamba-solver/25.11.0 libmambapy/2.3.2 aau/0.7.5 c/. s/. e/. a/.
administrator : False
netrc file : None
offline mode : False
Код: Выделить всё
D:\ProgramData\anaconda3
D:\ProgramData\anaconda3\Scripts
D:\ProgramData\anaconda3\Library\bin
D:\ProgramData\anaconda3\Library\mingw-w64\bin
Кстати, я пробовал это с другим env, используя Python 3.13, и это все равно не сработает, поэтому этот вариант тоже исключен.
Подробнее здесь: https://stackoverflow.com/questions/798 ... -conda-env
Мобильная версия