admin管理员组文章数量:1405148
I am participating in a kaggle competition where internet off is required. In this context, I would like to create an environment in kaggle notebook where I can use the swe agent.
However, only python 3.10 is available there, and I cannot provide the python 3.11 or higher environment required for swe agent.
Therefore, I am trying to create a python 3.11 virtual environment with uv venv
and run my swe agent there.
But I can't install from local packages and can't run swe agent. What is the solution? I get this error especially in this part. Here is the minimal code.
!my_env/bin/python -m pip wheel --wheel-dir /kaggle/input/packages-for-sweagent/packages -r /kaggle/input/konwinski-prize-requirements/requirements.txt
"""error
Obtaining file:///kaggle/working/sweagent (from -r /kaggle/input/konwinski-prize-requirements/requirements.txt (line 83))
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
"""
!my_env/bin/python -m pip install --no-index --find-links=/kaggle/input/packages-for-sweagent/packages -r /kaggle/input/konwinski-prize-requirements/requirements.txt
"""
Looking in links: /kaggle/input/packages-for-sweagent/packages
Obtaining file:///kaggle/working/sweagent (from -r /kaggle/input/konwinski-prize-requirements/requirements.txt (line 83))
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
"""
I am participating in a kaggle competition where internet off is required. In this context, I would like to create an environment in kaggle notebook where I can use the swe agent.
However, only python 3.10 is available there, and I cannot provide the python 3.11 or higher environment required for swe agent.
Therefore, I am trying to create a python 3.11 virtual environment with uv venv
and run my swe agent there.
But I can't install from local packages and can't run swe agent. What is the solution? I get this error especially in this part. Here is the minimal code. https://www.kaggle/code/ooooooooooooooooo/notebook336e888d96
!my_env/bin/python -m pip wheel --wheel-dir /kaggle/input/packages-for-sweagent/packages -r /kaggle/input/konwinski-prize-requirements/requirements.txt
"""error
Obtaining file:///kaggle/working/sweagent (from -r /kaggle/input/konwinski-prize-requirements/requirements.txt (line 83))
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
"""
!my_env/bin/python -m pip install --no-index --find-links=/kaggle/input/packages-for-sweagent/packages -r /kaggle/input/konwinski-prize-requirements/requirements.txt
"""
Looking in links: /kaggle/input/packages-for-sweagent/packages
Obtaining file:///kaggle/working/sweagent (from -r /kaggle/input/konwinski-prize-requirements/requirements.txt (line 83))
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
"""
Share
Improve this question
asked Mar 8 at 20:28
RyoRyo
213 bronze badges
1 Answer
Reset to default 0The error was resolved by replacing the relevant code with the code below.
!my_env/bin/python -m pip install -e /kaggle/working/sweagent/. --no-index \
--find-links=/kaggle/input/setuptools-75-8-2/ \
--find-links=/kaggle/input/packages-for-sweagent/packages
Using the code below and looking at the details, I found that the problem was caused by the setuptools installation, so I added the setuptools wheel file.
pip install -e /kaggle/working/sweagent/. --no-index -vvv
https://www.kaggle/code/ooooooooooooooooo/notebook336e888d96
本文标签:
版权声明:本文标题:python 3.x - Installation from a local package by pip is not possible on a kaggle notebook in an internet off environment - Stac 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744885574a2630464.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论