iuiaoin / wechat-gptbot

A wechat robot based on ChatGPT with no risk, very stable! 🚀
MIT License
579 stars 113 forks source link

[Bug]: Dependencies installed via pip install -r requirements.txt #111

Closed poiuyb closed 6 months ago

poiuyb commented 6 months ago

Search for answers in existing issues

Python version

other

Issue description

[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for lxml Building wheel for tiktoken (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for tiktoken (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [37 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-312 creating build\lib.win-amd64-cpython-312\tiktoken copying tiktoken\core.py -> build\lib.win-amd64-cpython-312\tiktoken copying tiktoken\load.py -> build\lib.win-amd64-cpython-312\tiktoken copying tiktoken\model.py -> build\lib.win-amd64-cpython-312\tiktoken copying tiktoken\registry.py -> build\lib.win-amd64-cpython-312\tiktoken copying tiktoken__init__.py -> build\lib.win-amd64-cpython-312\tiktoken creating build\lib.win-amd64-cpython-312\tiktoken_ext copying tiktoken_ext\openai_public.py -> build\lib.win-amd64-cpython-312\tiktoken_ext running egg_info writing tiktoken.egg-info\PKG-INFO writing dependency_links to tiktoken.egg-info\dependency_links.txt writing requirements to tiktoken.egg-info\requires.txt writing top-level names to tiktoken.egg-info\top_level.txt reading manifest file 'tiktoken.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'Makefile' adding license file 'LICENSE' writing manifest file 'tiktoken.egg-info\SOURCES.txt' copying tiktoken\py.typed -> build\lib.win-amd64-cpython-312\tiktoken running build_ext running build_rust error: can't find Rust compiler

  If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.

  To update pip, run:

      pip install --upgrade pip

  and then retry package installation.

  If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for tiktoken Failed to build lxml tiktoken ERROR: Could not build wheels for lxml, tiktoken, which is required to install pyproject.toml-based projects

Repro steps

No response

Relevant log output

No response