tavily-ai / tavily-python

A python wrapper for Tavily search API
https://docs.tavily.com
MIT License
107 stars 19 forks source link

Building wheel for tiktoken (pyproject.toml) did not run successfully. #10

Open Khalil-Rehman9 opened 6 months ago

Khalil-Rehman9 commented 6 months ago

C:\Users\Khalil Ur Rehman>pip install tavily-python Collecting tavily-python Using cached tavily_python-0.3.0-py3-none-any.whl.metadata (4.4 kB) Requirement already satisfied: requests in c:\users\khalil ur rehman\appdata\local\programs\python\python312\lib\site-packages (from tavily-python) (2.31.0) Collecting tiktoken==0.5.1 (from tavily-python) Using cached tiktoken-0.5.1.tar.gz (32 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: regex>=2022.1.18 in c:\users\khalil ur rehman\appdata\local\programs\python\python312\lib\site-packages (from tiktoken==0.5.1->tavily-python) (2023.12.25) Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\khalil ur rehman\appdata\local\programs\python\python312\lib\site-packages (from requests->tavily-python) (3.3.2) Requirement already satisfied: idna<4,>=2.5 in c:\users\khalil ur rehman\appdata\local\programs\python\python312\lib\site-packages (from requests->tavily-python) (3.6) Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\khalil ur rehman\appdata\local\programs\python\python312\lib\site-packages (from requests->tavily-python) (2.1.0) Requirement already satisfied: certifi>=2017.4.17 in c:\users\khalil ur rehman\appdata\local\programs\python\python312\lib\site-packages (from requests->tavily-python) (2023.11.17) Using cached tavily_python-0.3.0-py3-none-any.whl (5.4 kB) Building wheels for collected packages: tiktoken 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 ╰─> [38 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_educational.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 tiktoken ERROR: Could not build wheels for tiktoken, which is required to install pyproject.toml-based projects

hoonlight commented 5 months ago

Same issue

carl-vbn commented 2 weeks ago

Hello, Are you still experiencing the issue? If so, what version of Python and PIP are you running?