OpenNMT / OpenNMT/CTranslate2

Ctranslate2 4.5.0 not available for x86_64 macOS

Open
#1,841 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
4.7k
Forks
536
Avg merge
12h 12m
Merged PRs (30d)
4

Description

I am trying to install Ctranslate2 4.5.0 for Intel Macs, but I can only install 4.3.1 via pip:

x86_64 (via Rosetta):

% python -m venv ~/venv/test_x86_64 # using python 3.12.8
% source ~/venv/test_x86_64/bin/activate
% pip install ctranslate2 # using pip 24.3.1
% pip freeze
ctranslate2==4.3.1
numpy==2.2.1
PyYAML==6.0.2
setuptools==75.7.0

With arm64 everything works as expected:

% python -m venv ~/venv/test_arm64 # using python 3.12.8
% source ~/venv/test_arm64/bin/activate
% pip install ctranslate2 # using pip 24.3.1
% pip freeze
ctranslate2==4.5.0
numpy==2.2.1
PyYAML==6.0.2
setuptools==75.7.0

Is there a reason Ctranslate2 is not provided for Intel Macs and do I have to build from source myself?

EDIT: The docs state support for both macOS architectures (x86_64 and arm64):

The Python wheels have the following requirements:

  • OS: Linux (x86-64, AArch64), macOS (x86-64, ARM64), Windows (x86-64)

I also tried pip index versions ctranslate2 and it clearly states for x86_64 only version 4.3.1 and older are available. Is there a pip wheel missing?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the documented pip commands and pip index versions ctranslate2, then inspect how the 4.5.0 Python wheels are published for x86_64 and arm64 macOS. Done means determining why the x86_64 wheel is absent and making version 4.5.0 installable on Intel macOS, with the published wheel availability matching the documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, macos, python
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.