Description
PS C:\Users\Kevin> pip install torchtext
Collecting torchtext
Downloading torchtext-0.6.0-py3-none-any.whl.metadata (6.3 kB)
Requirement already satisfied: tqdm in c:\users\kevin\appdata\local\programs\python\python313\lib\site-packages (from torchtext) (4.67.1)
Requirement already satisfied: requests in c:\users\kevin\appdata\local\programs\python\python313\lib\site-packages (from torchtext) (2.32.3)
Requirement already satisfied: torch in c:\users\kevin\appdata\local\programs\python\python313\lib\site-packages (from torchtext) (2.6.0)
Requirement already satisfied: numpy in c:\users\kevin\appdata\local\programs\python\python313\lib\site-packages (from torchtext) (2.2.1)
Requirement already satisfied: six in c:\users\kevin\appdata\local\programs\python\python313\lib\site-packages (from torchtext) (1.17.0)
Collecting sentencepiece (from torchtext)
Downloading sentencepiece-0.2.0.tar.gz (2.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.6/2.6 MB 3.5 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [48 lines of output]
Traceback (most recent call last):
File "C:\Users\Kevin\AppData\Local\Programs\Python\Python313\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 389, in
main()
~~~~^^
File "C:\Users\Kevin\AppData\Local\Programs\Python\Python313\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\Kevin\AppData\Local\Programs\Python\Python313\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\Kevin\AppData\Local\Temp\pip-build-env-_dr9avtb\overlay\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Kevin\AppData\Local\Temp\pip-build-env-_dr9avtb\overlay\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires
self.run_setup()
~~~~~~~~~~~~~~^^
File "C:\Users\Kevin\AppData\Local\Temp\pip-build-env-_dr9avtb\overlay\Lib\site-packages\setuptools\build_meta.py", line 522, in run_setup
super().run_setup(setup_script=setup_script)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Kevin\AppData\Local\Temp\pip-build-env-_dr9avtb\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "", line 128, in
File "C:\Users\Kevin\AppData\Local\Programs\Python\Python313\Lib\subprocess.py", line 414, in check_call
retcode = call(*popenargs, **kwargs)
File "C:\Users\Kevin\AppData\Local\Programs\Python\Python313\Lib\subprocess.py", line 395, in call
with Popen(*popenargs, **kwargs) as p:
~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Kevin\AppData\Local\Programs\Python\Python313\Lib\subprocess.py", line 1036, in init
self._execute_child(args, executable, preexec_fn, close_fds,
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pass_fds, cwd, env,
^^^^^^^^^^^^^^^^^^^
...<5 lines>...
gid, gids, uid, umask,
^^^^^^^^^^^^^^^^^^^^^^
start_new_session, process_group)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Kevin\AppData\Local\Programs\Python\Python313\Lib\subprocess.py", line 1548, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
# no special security
^^^^^^^^^^^^^^^^^^^^^
...<4 lines>...
cwd,
^^^^
startupinfo)
^^^^^^^^^^^^
FileNotFoundError: [WinError 2] 系统找不到指定的文件。
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
- PyTorch Version (e.g., 1.0): 2.6.0
- OS (e.g., Linux): MS Windows 11
- How you installed PyTorch (
conda
,pip
, source): pip - Build command you used (if compiling from source):
- Python version: 3.13
- CUDA/cuDNN version:
- GPU models and configuration:
- Any other relevant information: