Skip to content

pip install -e . has error #502

@weibo3Q

Description

@weibo3Q

Hi friends, how can I solve it and ask for help? Thanks

PS D:\PythonProject\argos-translate> ..venv\Scripts\activate

(.venv) PS D:\PythonProject\argos-translate> python -V
Python 3.13.9

(.venv) PS D:\PythonProject\argos-translate> pip install argostranslate
...
...
Successfully installed MarkupSafe-3.0.3 annotated-types-0.7.0 argostranslate-1.10.0 blis-1.3.3 catalogue-2.0.10 certifi-2025.11.12 charset_normalizer-3.4.4 click-8.3.1 cloudpathlib-0.23.0 colorama-0.4.6 confection-0.1.5 ctransla
te2-4.6.1 cymem-2.0.13 emoji-2.15.0 filelock-3.20.0 fsspec-2025.10.0 idna-3.11 jinja2-3.1.6 joblib-1.5.2 mpmath-1.3.0 murmurhash-1.0.15 networkx-3.6 numpy-2.3.5 packaging-25.0 preshed-3.0.12 protobuf-6.33.1 pydantic-2.12.5 pydan
tic-core-2.41.5 pyyaml-6.0.3 regex-2025.11.3 requests-2.32.5 sacremoses-0.1.1 sentencepiece-0.2.1 setuptools-80.9.0 smart-open-7.5.0 spacy-3.8.11 spacy-legacy-3.0.12 spacy-loggers-1.0.5 srsly-2.5.2 stanza-1.10.1 sympy-1.14.0 thi
nc-8.3.10 torch-2.9.1 tqdm-4.67.1 typer-slim-0.20.0 typing-extensions-4.15.0 typing-inspection-0.4.2 urllib3-2.5.0 wasabi-1.1.3 weasel-0.4.3 wrapt-2.0.1

(.venv) PS D:\PythonProject\argos-translate> pip install argostranslategui
...
...
Installing collected packages: PyQt5-Qt5, PyQt5-sip, PyQt5, argostranslategui
Successfully installed PyQt5-5.15.11 PyQt5-Qt5-5.15.2 PyQt5-sip-12.17.1 argostranslategui-1.6.5

(.venv) PS D:\PythonProject\argos-translate> pip install -e .
Looking in indexes: https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
Obtaining file:///D:/PythonProject/argos-translate
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
╰─> [26 lines of output]
Traceback (most recent call last):
File "D:\PythonProject\argos-translate.venv\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 389, in
main()
~~~~^^
File "D:\PythonProject\argos-translate.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 "D:\PythonProject\argos-translate.venv\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\32939\AppData\Local\Temp\pip-build-env-tlyuu7h4\overlay\Lib\site-packages\setuptools\build_meta.py", line 473, in get_requires_for_build_editable
return self.get_requires_for_build_wheel(config_settings)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "C:\Users\32939\AppData\Local\Temp\pip-build-env-tlyuu7h4\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\32939\AppData\Local\Temp\pip-build-env-tlyuu7h4\overlay\Lib\site-packages\setuptools\build_meta.py", line 301, in _get_build_requires
self.run_setup()
~~~~~~~~~~~~~~^^
File "C:\Users\32939\AppData\Local\Temp\pip-build-env-tlyuu7h4\overlay\Lib\site-packages\setuptools\build_meta.py", line 512, in run_setup
super().run_setup(setup_script=setup_script)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\32939\AppData\Local\Temp\pip-build-env-tlyuu7h4\overlay\Lib\site-packages\setuptools\build_meta.py", line 317, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "", line 7, in
UnicodeDecodeError: 'gbk' codec can't decode byte 0x92 in position 1011: illegal multibyte sequence
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'file:///D:/PythonProject/argos-translate' when getting requirements to build editable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions