Install fails on M1 Mac due to PyYAML errors
System Info: MacMini M1, macOS 14.2.1, Python 3.11.5
Steps To Reproduce:
python3 -m venv claude-envpip install claude
Full Error Log: Collecting claude==0.4.10 Using cached claude-0.4.10.tar.gz (1.4 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting aiohttp~=3.5 (from claude==0.4.10) Using cached aiohttp-3.9.3.tar.gz (7.5 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Collecting Jinja2~=2.10 (from claude==0.4.10) Using cached Jinja2-2.11.3.tar.gz (257 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Collecting configpp~=0.3 (from claude==0.4.10) Using cached configpp-0.5.0.tar.gz (354 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting lxml~=4.4 (from claude==0.4.10) Using cached lxml-4.9.4.tar.gz (3.6 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Collecting pymemcache~=2.2 (from claude==0.4.10) Using cached pymemcache-2.2.2.tar.gz (41 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Collecting cssselect~=1.1 (from claude==0.4.10) Using cached cssselect-1.2.0.tar.gz (41 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Collecting cachetools~=3.1 (from claude==0.4.10) Using cached cachetools-3.1.1.tar.gz (22 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Collecting pychromecast~=3.2 (from claude==0.4.10) Using cached PyChromecast-3.2.3.tar.gz (43 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Collecting aiohttp-middlewares~=1.1 (from claude==0.4.10) Using cached aiohttp-middlewares-1.2.1.tar.gz (14 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting aiosignal>=1.1.2 (from aiohttp~=3.5->claude==0.4.10) Using cached aiosignal-1.3.1.tar.gz (19 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting attrs>=17.3.0 (from aiohttp~=3.5->claude==0.4.10) Using cached attrs-23.2.0.tar.gz (780 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting frozenlist>=1.1.1 (from aiohttp~=3.5->claude==0.4.10) Using cached frozenlist-1.4.1.tar.gz (37 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Collecting multidict<7.0,>=4.5 (from aiohttp~=3.5->claude==0.4.10) Using cached multidict-6.0.5.tar.gz (59 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Collecting yarl<2.0,>=1.0 (from aiohttp~=3.5->claude==0.4.10) Using cached yarl-1.9.4.tar.gz (141 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Collecting async-timeout<5.0,>=4.0 (from aiohttp~=3.5->claude==0.4.10) Using cached async-timeout-4.0.3.tar.gz (8.3 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting voluptuous~=0.11 (from configpp~=0.3->claude==0.4.10) Using cached voluptuous-0.14.2.tar.gz (50 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Collecting command-tree~=0.7 (from configpp~=0.3->claude==0.4.10) Using cached command-tree-0.7.1.tar.gz (15 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Collecting python-slugify~=1.2 (from configpp~=0.3->claude==0.4.10) Using cached python-slugify-1.2.6.tar.gz (6.8 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Collecting python-dateutil~=2.7 (from configpp~=0.3->claude==0.4.10) Using cached python-dateutil-2.8.2.tar.gz (357 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting ruamel.yaml~=0.15.44 (from configpp~=0.3->claude==0.4.10) Using cached ruamel.yaml-0.15.100.tar.gz (318 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Collecting typing-inspect~=0.3 (from configpp~=0.3->claude==0.4.10) Using cached typing_inspect-0.9.0.tar.gz (13 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Collecting PyYAML~=5.1 (from configpp~=0.3->claude==0.4.10) Using cached PyYAML-5.4.1.tar.gz (175 kB) 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]
running egg_info
writing lib3/PyYAML.egg-info/PKG-INFO
writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt
writing top-level names to lib3/PyYAML.egg-info/top_level.txt
Traceback (most recent call last):
File "/Users/trevorjohnson/claude-env/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
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.
note: This error originates from a subprocess, and is likely not a problem with pip.
Summary: Failing due to PyYAML requiring cython functionality during compile, attribute error suggests missing cython libs. Tried in fresh virtualenv, still seeing the issue.
Ask: Advice on resolving PyYAML M1 build issues?
You want pip install anthropic, not pip install claude. This package does not depend on PyYAML.