I have cloned this Github repo into VSCode in order to start a new project. While trying to create a virtual environment with venv, VSCode detected the requirements.txt and asked me for permission to install all dependencies mentioned there, which I granted at first. In the course of the installation process, the following log and error ocurred:
2025-04-30 11:53:58.352 [info] Selected workspace c:\Users\a\VSCodeProjects\DeepSeek-VL2 for creating virtual environment.
2025-04-30 11:54:00.383 [info] Selected interpreter C:\Users\a\AppData\Local\Programs\Python\Python311\python.exe for creating virtual environment.
2025-04-30 11:57:08.649 [info] Selected interpreter C:\Users\a\AppData\Local\Programs\Python\Python311\python.exe for creating virtual environment.
2025-04-30 11:57:16.045 [info] Deleted python executable: c:\Users\a\VSCodeProjects\DeepSeek-VL2\.venv\Scripts\python.exe
2025-04-30 11:57:16.329 [info] Environments refresh finished (event): 48 milliseconds
2025-04-30 11:57:16.329 [info] Environments refresh paths discovered: 48 milliseconds
2025-04-30 11:57:16.330 [info] Deleted ".venv" dir: c:\Users\a\VSCodeProjects\DeepSeek-VL2\.venv
2025-04-30 11:57:16.342 [info] Running Env creation script: [
'C:\\Users\\a\\AppData\\Local\\Programs\\Python\\Python311\\python.exe',
'c:\\Users\\a\\.vscode\\extensions\\ms-python.python-2025.4.0-win32-x64\\python_files\\create_venv.py',
'--git-ignore',
'--toml',
'c:/Users/a/VSCodeProjects/DeepSeek-VL2/pyproject.toml',
'--requirements',
'c:\\Users\\a\\VSCodeProjects\\DeepSeek-VL2\\requirements.txt'
]
2025-04-30 11:57:16.342 [info] > ~\AppData\Local\Programs\Python\Python311\python.exe ~\.vscode\extensions\ms-python.python-2025.4.0-win32-x64\python_files\create_venv.py --git-ignore --toml ./pyproject.toml --requirements .\requirements.txt
2025-04-30 11:57:16.343 [info] cwd: .
2025-04-30 11:57:16.724 [info] Running: C:\Users\a\AppData\Local\Programs\Python\Python311\python.exe -m venv .venv
2025-04-30 11:57:18.282 [info] > .\.venv\Scripts\python.exe -I ~\.vscode\extensions\ms-python.python-2025.4.0-win32-x64\python_files\get_output_via_markers.py ~\.vscode\extensions\ms-python.python-2025.4.0-win32-x64\python_files\interpreterInfo.py
2025-04-30 11:57:18.282 [info] Environments refresh paths discovered: 50 milliseconds
2025-04-30 11:57:18.561 [info] Environments refresh finished (event): 329 milliseconds
2025-04-30 11:57:32.848 [info] CREATED_VENV:c:\Users\a\VSCodeProjects\DeepSeek-VL2\.venv\Scripts\python.exe
2025-04-30 11:57:32.849 [info] Creating: c:\Users\a\VSCodeProjects\DeepSeek-VL2\.venv\.gitignore
2025-04-30 11:57:32.853 [info] CREATE_VENV.UPGRADING_PIP
Running: c:\Users\a\VSCodeProjects\DeepSeek-VL2\.venv\Scripts\python.exe -m pip install --upgrade pip
2025-04-30 11:57:34.498 [info] Requirement already satisfied: pip in c:\users\a\vscodeprojects\deepseek-vl2\.venv\lib\site-packages (23.1.2)
2025-04-30 11:57:34.684 [info] Collecting pip
2025-04-30 11:57:34.689 [info] Using cached pip-25.1-py3-none-any.whl (1.8 MB)
2025-04-30 11:57:34.762 [info] Installing collected packages: pip
2025-04-30 11:57:34.762 [info] Attempting uninstall: pip
2025-04-30 11:57:34.771 [info] Found existing installation: pip 23.1.2
2025-04-30 11:57:34.942 [info] Uninstalling pip-23.1.2:
2025-04-30 11:57:34.974 [info] Successfully uninstalled pip-23.1.2
2025-04-30 11:57:41.720 [info] Successfully installed pip-25.1
2025-04-30 11:57:41.811 [info] CREATE_VENV.UPGRADED_PIP
VENV_INSTALLING_REQUIREMENTS: ['c:\\Users\\a\\VSCodeProjects\\DeepSeek-VL2\\requirements.txt']
VENV_INSTALLING_REQUIREMENTS: c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt
Running: c:\Users\a\VSCodeProjects\DeepSeek-VL2\.venv\Scripts\python.exe -m pip install -r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt
2025-04-30 11:57:43.555 [info] Collecting torch==2.0.1 (from -r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 1))
2025-04-30 11:57:43.561 [info] Using cached torch-2.0.1-cp311-cp311-win_amd64.whl.metadata (24 kB)
2025-04-30 11:57:43.662 [info] Collecting transformers==4.38.2 (from -r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 2))
2025-04-30 11:57:43.673 [info] Using cached transformers-4.38.2-py3-none-any.whl.metadata (130 kB)
2025-04-30 11:57:43.812 [info] Collecting xformers>=0.0.21 (from -r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 3))
2025-04-30 11:57:43.824 [info] Using cached xformers-0.0.30-cp311-cp311-win_amd64.whl.metadata (1.0 kB)
2025-04-30 11:57:43.906 [info] Collecting timm>=0.9.16 (from -r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 4))
2025-04-30 11:57:43.912 [info] Using cached timm-1.0.15-py3-none-any.whl.metadata (52 kB)
2025-04-30 11:57:43.998 [info] Collecting accelerate (from -r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 5))
2025-04-30 11:57:44.008 [info] Using cached accelerate-1.6.0-py3-none-any.whl.metadata (19 kB)
2025-04-30 11:57:44.105 [info] Collecting sentencepiece (from -r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 6))
2025-04-30 11:57:44.112 [info] Using cached sentencepiece-0.2.0-cp311-cp311-win_amd64.whl.metadata (8.3 kB)
2025-04-30 11:57:44.192 [info] Collecting attrdict (from -r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 7))
2025-04-30 11:57:44.200 [info] Using cached attrdict-2.0.1-py2.py3-none-any.whl.metadata (6.7 kB)
2025-04-30 11:57:44.285 [info] Collecting einops (from -r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 8))
2025-04-30 11:57:44.294 [info] Using cached einops-0.8.1-py3-none-any.whl.metadata (13 kB)
2025-04-30 11:57:44.425 [info] Collecting gradio==3.48.0 (from -r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:44.434 [info] Using cached gradio-3.48.0-py3-none-any.whl.metadata (17 kB)
2025-04-30 11:57:44.527 [info] Collecting gradio-client==0.6.1 (from -r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 12))
2025-04-30 11:57:44.535 [info] Using cached gradio_client-0.6.1-py3-none-any.whl.metadata (7.1 kB)
2025-04-30 11:57:44.698 [info] Collecting mdtex2html==1.3.0 (from -r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 13))
2025-04-30 11:57:44.707 [info] Using cached mdtex2html-1.3.0-py3-none-any.whl.metadata (4.1 kB)
2025-04-30 11:57:44.789 [info] Collecting pypinyin==0.50.0 (from -r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 14))
2025-04-30 11:57:44.797 [info] Using cached pypinyin-0.50.0-py2.py3-none-any.whl.metadata (12 kB)
2025-04-30 11:57:44.883 [info] Collecting tiktoken==0.5.2 (from -r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 15))
2025-04-30 11:57:44.888 [info] Using cached tiktoken-0.5.2-cp311-cp311-win_amd64.whl.metadata (6.8 kB)
2025-04-30 11:57:44.978 [info] Collecting tqdm==4.64.0 (from -r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 16))
2025-04-30 11:57:44.985 [info] Using cached tqdm-4.64.0-py2.py3-none-any.whl.metadata (57 kB)
2025-04-30 11:57:45.083 [info] Collecting colorama==0.4.5 (from -r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 17))
2025-04-30 11:57:45.093 [info] Using cached colorama-0.4.5-py2.py3-none-any.whl.metadata (15 kB)
2025-04-30 11:57:45.179 [info] Collecting Pygments==2.12.0 (from -r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 18))
2025-04-30 11:57:45.186 [info] Using cached Pygments-2.12.0-py3-none-any.whl.metadata (1.5 kB)
2025-04-30 11:57:45.263 [info] Collecting markdown==3.4.1 (from -r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 19))
2025-04-30 11:57:45.270 [info] Using cached Markdown-3.4.1-py3-none-any.whl.metadata (4.6 kB)
2025-04-30 11:57:45.303 [info] Collecting sentencepiece (from -r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 6))
2025-04-30 11:57:45.326 [info] Using cached sentencepiece-0.1.96.tar.gz (508 kB)
2025-04-30 11:57:45.423 [info] Installing build dependencies: started
2025-04-30 11:57:48.468 [info] Installing build dependencies: finished with status 'done'
2025-04-30 11:57:48.471 [info] Getting requirements to build wheel: started
2025-04-30 11:57:50.685 [info] Getting requirements to build wheel: finished with status 'done'
2025-04-30 11:57:50.695 [info] Preparing metadata (pyproject.toml): started
2025-04-30 11:57:51.875 [info] Preparing metadata (pyproject.toml): finished with status 'done'
2025-04-30 11:57:51.953 [info] Collecting filelock (from torch==2.0.1->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 1))
2025-04-30 11:57:51.958 [info] Using cached filelock-3.18.0-py3-none-any.whl.metadata (2.9 kB)
2025-04-30 11:57:52.039 [info] Collecting typing-extensions (from torch==2.0.1->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 1))
2025-04-30 11:57:52.045 [info] Using cached typing_extensions-4.13.2-py3-none-any.whl.metadata (3.0 kB)
2025-04-30 11:57:52.123 [info] Collecting sympy (from torch==2.0.1->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 1))
2025-04-30 11:57:52.132 [info] Using cached sympy-1.14.0-py3-none-any.whl.metadata (12 kB)
2025-04-30 11:57:52.214 [info] Collecting networkx (from torch==2.0.1->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 1))
2025-04-30 11:57:52.220 [info] Using cached networkx-3.4.2-py3-none-any.whl.metadata (6.3 kB)
2025-04-30 11:57:52.303 [info] Collecting jinja2 (from torch==2.0.1->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 1))
2025-04-30 11:57:52.309 [info] Using cached jinja2-3.1.6-py3-none-any.whl.metadata (2.9 kB)
2025-04-30 11:57:52.400 [info] Collecting huggingface-hub<1.0,>=0.19.3 (from transformers==4.38.2->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 2))
2025-04-30 11:57:52.407 [info] Using cached huggingface_hub-0.30.2-py3-none-any.whl.metadata (13 kB)
2025-04-30 11:57:52.596 [info] Collecting numpy>=1.17 (from transformers==4.38.2->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 2))
2025-04-30 11:57:52.602 [info] Using cached numpy-2.2.5-cp311-cp311-win_amd64.whl.metadata (60 kB)
2025-04-30 11:57:52.686 [info] Collecting packaging>=20.0 (from transformers==4.38.2->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 2))
2025-04-30 11:57:52.692 [info] Using cached packaging-25.0-py3-none-any.whl.metadata (3.3 kB)
2025-04-30 11:57:52.780 [info] Collecting pyyaml>=5.1 (from transformers==4.38.2->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 2))
2025-04-30 11:57:52.785 [info] Using cached PyYAML-6.0.2-cp311-cp311-win_amd64.whl.metadata (2.1 kB)
2025-04-30 11:57:53.032 [info] Collecting regex!=2019.12.17 (from transformers==4.38.2->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 2))
2025-04-30 11:57:53.041 [info] Using cached regex-2024.11.6-cp311-cp311-win_amd64.whl.metadata (41 kB)
2025-04-30 11:57:53.157 [info] Collecting requests (from transformers==4.38.2->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 2))
2025-04-30 11:57:53.162 [info] Using cached requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
2025-04-30 11:57:53.334 [info] Collecting tokenizers<0.19,>=0.14 (from transformers==4.38.2->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 2))
2025-04-30 11:57:53.341 [info] Using cached tokenizers-0.15.2-cp311-none-win_amd64.whl.metadata (6.8 kB)
2025-04-30 11:57:53.477 [info] Collecting safetensors>=0.4.1 (from transformers==4.38.2->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 2))
2025-04-30 11:57:53.485 [info] Using cached safetensors-0.5.3-cp38-abi3-win_amd64.whl.metadata (3.9 kB)
2025-04-30 11:57:53.581 [info] Collecting aiofiles<24.0,>=22.0 (from gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:53.589 [info] Using cached aiofiles-23.2.1-py3-none-any.whl.metadata (9.7 kB)
2025-04-30 11:57:53.675 [info] Collecting altair<6.0,>=4.2.0 (from gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:53.681 [info] Using cached altair-5.5.0-py3-none-any.whl.metadata (11 kB)
2025-04-30 11:57:53.780 [info] Collecting fastapi (from gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:53.787 [info] Using cached fastapi-0.115.12-py3-none-any.whl.metadata (27 kB)
2025-04-30 11:57:53.865 [info] Collecting ffmpy (from gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:53.872 [info] Using cached ffmpy-0.5.0-py3-none-any.whl.metadata (3.0 kB)
2025-04-30 11:57:53.965 [info] Collecting httpx (from gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:53.972 [info] Using cached httpx-0.28.1-py3-none-any.whl.metadata (7.1 kB)
2025-04-30 11:57:54.077 [info] Collecting importlib-resources<7.0,>=1.3 (from gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:54.085 [info] Using cached importlib_resources-6.5.2-py3-none-any.whl.metadata (3.9 kB)
2025-04-30 11:57:54.193 [info] Collecting markupsafe~=2.0 (from gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:54.203 [info] Using cached MarkupSafe-2.1.5-cp311-cp311-win_amd64.whl.metadata (3.1 kB)
2025-04-30 11:57:54.402 [info] Collecting matplotlib~=3.0 (from gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:54.408 [info] Using cached matplotlib-3.10.1-cp311-cp311-win_amd64.whl.metadata (11 kB)
2025-04-30 11:57:54.446 [info] Collecting numpy>=1.17 (from transformers==4.38.2->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 2))
2025-04-30 11:57:54.454 [info] Using cached numpy-1.26.4-cp311-cp311-win_amd64.whl.metadata (61 kB)
2025-04-30 11:57:54.687 [info] Collecting orjson~=3.0 (from gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:54.693 [info] Using cached orjson-3.10.18-cp311-cp311-win_amd64.whl.metadata (43 kB)
2025-04-30 11:57:54.831 [info] Collecting pandas<3.0,>=1.0 (from gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:54.838 [info] Using cached pandas-2.2.3-cp311-cp311-win_amd64.whl.metadata (19 kB)
2025-04-30 11:57:55.057 [info] Collecting pillow<11.0,>=8.0 (from gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:55.063 [info] Using cached pillow-10.4.0-cp311-cp311-win_amd64.whl.metadata (9.3 kB)
2025-04-30 11:57:55.200 [info] Collecting pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,<3.0.0,>=1.7.4 (from gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:55.207 [info] Using cached pydantic-2.11.4-py3-none-any.whl.metadata (66 kB)
2025-04-30 11:57:55.287 [info] Collecting pydub (from gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:55.293 [info] Using cached pydub-0.25.1-py2.py3-none-any.whl.metadata (1.4 kB)
2025-04-30 11:57:55.371 [info] Collecting python-multipart (from gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:55.377 [info] Using cached python_multipart-0.0.20-py3-none-any.whl.metadata (1.8 kB)
2025-04-30 11:57:55.470 [info] Collecting semantic-version~=2.0 (from gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:55.478 [info] Using cached semantic_version-2.10.0-py2.py3-none-any.whl.metadata (9.7 kB)
2025-04-30 11:57:55.562 [info] Collecting uvicorn>=0.14.0 (from gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:55.570 [info] Using cached uvicorn-0.34.2-py3-none-any.whl.metadata (6.5 kB)
2025-04-30 11:57:55.687 [info] Collecting websockets<12.0,>=10.0 (from gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:55.694 [info] Using cached websockets-11.0.3-cp311-cp311-win_amd64.whl.metadata (6.8 kB)
2025-04-30 11:57:55.770 [info] Collecting fsspec (from gradio-client==0.6.1->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 12))
2025-04-30 11:57:55.777 [info] Using cached fsspec-2025.3.2-py3-none-any.whl.metadata (11 kB)
2025-04-30 11:57:55.888 [info] Collecting latex2mathml (from mdtex2html==1.3.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 13))
2025-04-30 11:57:55.894 [info] Using cached latex2mathml-3.77.0-py3-none-any.whl.metadata (14 kB)
2025-04-30 11:57:55.985 [info] Collecting jsonschema>=3.0 (from altair<6.0,>=4.2.0->gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:55.992 [info] Using cached jsonschema-4.23.0-py3-none-any.whl.metadata (7.9 kB)
2025-04-30 11:57:56.075 [info] Collecting narwhals>=1.14.2 (from altair<6.0,>=4.2.0->gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:56.081 [info] Using cached narwhals-1.37.1-py3-none-any.whl.metadata (9.3 kB)
2025-04-30 11:57:56.249 [info] Collecting contourpy>=1.0.1 (from matplotlib~=3.0->gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:56.255 [info] Using cached contourpy-1.3.2-cp311-cp311-win_amd64.whl.metadata (5.5 kB)
2025-04-30 11:57:56.315 [info] Collecting cycler>=0.10 (from matplotlib~=3.0->gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:56.321 [info] Using cached cycler-0.12.1-py3-none-any.whl.metadata (3.8 kB)
2025-04-30 11:57:56.458 [info] Collecting fonttools>=4.22.0 (from matplotlib~=3.0->gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:56.464 [info] Using cached fonttools-4.57.0-cp311-cp311-win_amd64.whl.metadata (104 kB)
2025-04-30 11:57:56.561 [info] Collecting kiwisolver>=1.3.1 (from matplotlib~=3.0->gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:56.568 [info] Using cached kiwisolver-1.4.8-cp311-cp311-win_amd64.whl.metadata (6.3 kB)
2025-04-30 11:57:56.664 [info] Collecting pyparsing>=2.3.1 (from matplotlib~=3.0->gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:56.672 [info] Using cached pyparsing-3.2.3-py3-none-any.whl.metadata (5.0 kB)
2025-04-30 11:57:56.738 [info] Collecting python-dateutil>=2.7 (from matplotlib~=3.0->gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:56.744 [info] Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
2025-04-30 11:57:56.842 [info] Collecting pytz>=2020.1 (from pandas<3.0,>=1.0->gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:56.847 [info] Using cached pytz-2025.2-py2.py3-none-any.whl.metadata (22 kB)
2025-04-30 11:57:56.920 [info] Collecting tzdata>=2022.7 (from pandas<3.0,>=1.0->gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:56.927 [info] Using cached tzdata-2025.2-py2.py3-none-any.whl.metadata (1.4 kB)
2025-04-30 11:57:56.993 [info] Collecting annotated-types>=0.6.0 (from pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,<3.0.0,>=1.7.4->gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:56.998 [info] Using cached annotated_types-0.7.0-py3-none-any.whl.metadata (15 kB)
2025-04-30 11:57:57.457 [info] Collecting pydantic-core==2.33.2 (from pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,<3.0.0,>=1.7.4->gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:57.463 [info] Using cached pydantic_core-2.33.2-cp311-cp311-win_amd64.whl.metadata (6.9 kB)
2025-04-30 11:57:57.544 [info] Collecting typing-inspection>=0.4.0 (from pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,<3.0.0,>=1.7.4->gradio==3.48.0->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 11))
2025-04-30 11:57:57.550 [info] Using cached typing_inspection-0.4.0-py3-none-any.whl.metadata (2.6 kB)
2025-04-30 11:57:57.661 [info] Collecting charset-normalizer<4,>=2 (from requests->transformers==4.38.2->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 2))
2025-04-30 11:57:57.666 [info] Using cached charset_normalizer-3.4.1-cp311-cp311-win_amd64.whl.metadata (36 kB)
2025-04-30 11:57:57.735 [info] Collecting idna<4,>=2.5 (from requests->transformers==4.38.2->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 2))
2025-04-30 11:57:57.740 [info] Using cached idna-3.10-py3-none-any.whl.metadata (10 kB)
2025-04-30 11:57:57.827 [info] Collecting urllib3<3,>=1.21.1 (from requests->transformers==4.38.2->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 2))
2025-04-30 11:57:57.834 [info] Using cached urllib3-2.4.0-py3-none-any.whl.metadata (6.5 kB)
2025-04-30 11:57:57.918 [info] Collecting certifi>=2017.4.17 (from requests->transformers==4.38.2->-r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 2))
2025-04-30 11:57:57.924 [info] Using cached certifi-2025.4.26-py3-none-any.whl.metadata (2.5 kB)
2025-04-30 11:57:57.969 [info] INFO: pip is looking at multiple versions of xformers to determine which version is compatible with other requirements. This could take a while.
2025-04-30 11:57:57.969 [info] Collecting xformers>=0.0.21 (from -r c:\Users\a\VSCodeProjects\DeepSeek-VL2\requirements.txt (line 3))
2025-04-30 11:57:57.977 [info] Using cached xformers-0.0.29.post3-cp311-cp311-win_amd64.whl.metadata (1.0 kB)
2025-04-30 11:57:58.011 [info] Using cached xformers-0.0.29.post2-cp311-cp311-win_amd64.whl.metadata (1.0 kB)
2025-04-30 11:57:58.054 [info] Using cached xformers-0.0.29.post1.tar.gz (8.5 MB)
2025-04-30 11:58:17.178 [info] Installing build dependencies: started
2025-04-30 11:58:20.791 [info] Installing build dependencies: finished with status 'done'
2025-04-30 11:58:20.794 [info] Getting requirements to build wheel: started
2025-04-30 11:58:22.589 [info] Getting requirements to build wheel: finished with status 'error'
2025-04-30 11:58:22.592 [info] error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
Traceback (most recent call last):
File "c:\Users\a\VSCodeProjects\DeepSeek-VL2\.venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>
main()
File "c:\Users\a\VSCodeProjects\DeepSeek-VL2\.venv\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 "c:\Users\a\VSCodeProjects\DeepSeek-VL2\.venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 143, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\a\AppData\Local\Temp\pip-build-env-v5rbcwtl\overlay\Lib\site-packages\setuptools\build_meta.py", line 331, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\a\AppData\Local\Temp\pip-build-env-v5rbcwtl\overlay\Lib\site-packages\setuptools\build_meta.py", line 301, in _get_build_requires
self.run_setup()
File "C:\Users\a\AppData\Local\Temp\pip-build-env-v5rbcwtl\overlay\Lib\site-packages\setuptools\build_meta.py", line 512, in run_setup
super().run_setup(setup_script=setup_script)
File "C:\Users\a\AppData\Local\Temp\pip-build-env-v5rbcwtl\overlay\Lib\site-packages\setuptools\build_meta.py", line 317, in run_setup
exec(code, locals())
File "<string>", line 24, in <module>
ModuleNotFoundError: No module named 'torch'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
2025-04-30 11:58:22.601 [info] error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
2025-04-30 11:58:22.602 [info]
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
2025-04-30 11:58:25.541 [info] Traceback (most recent call last):
File "c:\Users\a\.vscode\extensions\ms-python.python-2025.4.0-win32-x64\python_files\create_venv.py", line 96, in run_process
2025-04-30 11:58:25.543 [info] subprocess.run(args, cwd=os.getcwd(), check=True) # noqa: PTH109
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\a\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 571, in run
2025-04-30 11:58:25.544 [info] raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['c:\\Users\\a\\VSCodeProjects\\DeepSeek-VL2\\.venv\\Scripts\\python.exe', '-m', 'pip', 'install', '-r', 'c:\\Users\\a\\VSCodeProjects\\DeepSeek-VL2\\requirements.txt']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "c:\Users\a\.vscode\extensions\ms-python.python-2025.4.0-win32-x64\python_files\create_venv.py", line 262, in <module>
2025-04-30 11:58:25.545 [info] main(sys.argv[1:])
2025-04-30 11:58:25.546 [info] File "c:\Users\a\.vscode\extensions\ms-python.python-2025.4.0-win32-x64\python_files\create_venv.py", line 254, in main
2025-04-30 11:58:25.547 [info] install_requirements(venv_path, requirements)
File "c:\Users\a\.vscode\extensions\ms-python.python-2025.4.0-win32-x64\python_files\create_venv.py", line 116, in install_requirements
2025-04-30 11:58:25.548 [info] run_process(
File "c:\Users\a\.vscode\extensions\ms-python.python-2025.4.0-win32-x64\python_files\create_venv.py", line 98, in run_process
2025-04-30 11:58:25.549 [info] raise VenvError(error_message) from exc
2025-04-30 11:58:25.550 [info]
VenvError: CREATE_VENV.PIP_FAILED_INSTALL_REQUIREMENTS
2025-04-30 11:58:25.564 [error] Error while running venv creation script: CREATE_VENV.PIP_FAILED_INSTALL_REQUIREMENTS
2025-04-30 11:58:25.564 [error] CREATE_VENV.PIP_FAILED_INSTALL_REQUIREMENTS
The error seems to be associated with not finding ´torch´ as a module while building wheel.
What I tried:
I searched for a solution and what I found was creating the venv without installing the dependencies from requirements.txt, then installing torch first, and then the remaining dependencies with pip install -r requirements.txt. This, however, resulted in the same error, although I rejected when VSCode asked me if I wanted to install the dependecies named in requirements.txt. To prove that it is the same log, I wanted to post it here, but this would have exceeded the character limit of the question.
What I want:
Clone the repo, create a virtual environment and install all dependencies inside so that I can use the code.
Can anybody tell me what the root of the problem is and how I can fix it?
requirements.txtis a text file and you can open in any text editor - and you will see in first linetorch==2.0.1- so it installs torch. Even output showsCollecting torch==2.0.1. Problem it that (probably) modulexformers>=0.0.21may needs source code of torch to createwheel- maybe it runs different tool/python which doesn't see torch.xformerstorequirements.txt2 months ago - see history. Maybe it can work withoutxformers. Or you may try to first install all exceptxformers(remove it fromrequirements.txt) and later installxformers