-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
Required prerequisites
- I have read the documentation https://camel-ai.github.io/camel/camel.html.
- I have searched the Issue Tracker and Discussions that this hasn't already been reported. (+1 or comment there if it has.)
- Consider asking first in a Discussion.
What version of camel are you using?
0.2.85
System information
安装就失败了,没到这一步呢。
pip install camel-ai
依赖tiktoken,tiktoken编译报错了。
Problem description
rom requests>=2.26.0->tiktoken<0.8,>=0.7.0->camel-ai) (3.4.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in /Users/weiyinfu/miniconda3/lib/python3.13/site-packages (from requests>=2.26.0->tiktoken<0.8,>=0.7.0->camel-ai) (2.6.3)
Requirement already satisfied: click>=7.0 in /Users/weiyinfu/miniconda3/lib/python3.13/site-packages (from uvicorn>=0.31.1->mcp>=1.3.0->camel-ai) (8.1.8)
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
╰─> [50 lines of output]
/private/var/folders/vf/blm5p7bs40515v7sw07_b_9h0000gn/T/pip-build-env-49o94qa8/overlay/lib/python3.13/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: project.license as a TOML table is deprecated
!!
********************************************************************************
Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).
By 2027-Feb-18, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
corresp(dist, value, root_dir)
running bdist_wheel
running build
running build_py
creating build/lib.macosx-11.1-arm64-cpython-313/tiktoken
copying tiktoken/registry.py -> build/lib.macosx-11.1-arm64-cpython-313/tiktoken
copying tiktoken/__init__.py -> build/lib.macosx-11.1-arm64-cpython-313/tiktoken
copying tiktoken/core.py -> build/lib.macosx-11.1-arm64-cpython-313/tiktoken
copying tiktoken/model.py -> build/lib.macosx-11.1-arm64-cpython-313/tiktoken
copying tiktoken/load.py -> build/lib.macosx-11.1-arm64-cpython-313/tiktoken
copying tiktoken/_educational.py -> build/lib.macosx-11.1-arm64-cpython-313/tiktoken
creating build/lib.macosx-11.1-arm64-cpython-313/tiktoken_ext
copying tiktoken_ext/openai_public.py -> build/lib.macosx-11.1-arm64-cpython-313/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.macosx-11.1-arm64-cpython-313/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: failed-wheel-build-for-install
× Failed to build installable wheels for some pyproject.toml based projects
╰─> tiktoken
Reproducible example code
The Python snippets:
Command lines:
Extra dependencies:
Steps to reproduce:
Traceback
Expected behavior
No response
Additional context
No response