Python Forum
why I can't pip install faiss-cpu using python 3.14 on my windows 10 system?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
why I can't pip install faiss-cpu using python 3.14 on my windows 10 system?
#1
the error info are as follows:
Building wheels for collected packages: jiter
Building wheel for jiter (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for jiter (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [39 lines of output]
Running maturin pep517 build-wheel -i D:\ProgramTools\Python\Python314\python.exe --compatibility off
鈿狅笍 Warning: You're building a library without activating pyo3's extension-module feature. See https://pyo3.rs/v0.26.0/building-and-dis...le-feature
馃敆 Found pyo3 bindings
馃悕 Found CPython 3.14 at D:\ProgramTools\Python\Python314\python.exe
馃摗 Using build options features, bindings from pyproject.toml
Compiling shlex v1.3.0
Compiling target-lexicon v0.13.3
Compiling find-msvc-tools v0.1.1
Compiling autocfg v1.5.0
Compiling proc-macro2 v1.0.101
Compiling unicode-ident v1.0.19
Compiling libc v0.2.175
Compiling zerocopy v0.8.27
Compiling radium v0.7.0
Compiling heck v0.5.0
Compiling version_check v0.9.5
Compiling getrandom v0.3.3
Compiling static_assertions v1.1.0
error: linker link.exe not found
|
= note: program not found

note: the msvc targets depend on the msvc linker but link.exe was not found

note: please ensure that Visual Studio 2017 or later, or Build Tools for Visual Studio were installed with the Visual C++ option.

note: VS Code is a different product, and is not sufficient.

error: could not compile target-lexicon (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile proc-macro2 (build script) due to 1 previous error
error: could not compile libc (build script) due to 1 previous error
error: could not compile zerocopy (build script) due to 1 previous error
error: could not compile radium (build script) due to 1 previous error
error: could not compile getrandom (build script) due to 1 previous error
馃挜 maturin failed
Caused by: Failed to build a native library through cargo
Caused by: Cargo build finished with "exit code: 101": "cargo" "rustc" "--features" "pyo3/generate-import-lib" "--message-format" "json-render-diagnostics" "--manifest-path" "C:\\Users\\zhy\\AppData\\Local\\Temp\\pip-install-ax5cgqwj\\jiter_18b37c83f8574d40a3c85f37b0c718ef\\crates\\jiter-python\\Cargo.toml" "--release" "--lib" "--crate-type" "cdylib"
Error: command ['maturin', 'pep517', 'build-wheel', '-i', 'D:\\ProgramTools\\Python\\Python314\\python.exe', '--compatibility', 'off'] returned non-zero exit status 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for jiter
Failed to build jiter
error: failed-wheel-build-for-install

× Failed to build installable wheels for some pyproject.toml based projects
╰─> jiter
Reply
#2
Python 3.14 is new and many packages (including Rust-backed ones) jiter may not publish wheels yet.
To avoid compiling and install Build Tools for Visual Studio 2022 with C++,which can be painful🤮

Go back to Python 3.12 that has prebuilt wheel for jiter.
Here a demo use and i use uv,that make it easy to switch between Python versions.
E:\div_code\faiss_env
λ uv venv --python 3.12.3
Using CPython 3.12.3
Creating virtual environment at: .venv
Activate with: .venv\Scripts\activate

E:\div_code\faiss_env
λ .venv\Scripts\activate

E:\div_code\faiss_env
(faiss_env) λ pip install faiss-cpu
Collecting faiss-cpu
  Downloading faiss_cpu-1.12.0-cp313-cp313-win_amd64.whl.metadata (5.2 kB)
Requirement already satisfied: numpy<3.0,>=1.25.0 in c:\python313\lib\site-packages (from faiss-cpu) (2.3.3)
Requirement already satisfied: packaging in c:\python313\lib\site-packages (from faiss-cpu) (25.0)
Downloading faiss_cpu-1.12.0-cp313-cp313-win_amd64.whl (18.2 MB)
   ---------------------------------------- 18.2/18.2 MB 9.7 MB/s  0:00:01
Installing collected packages: faiss-cpu
Successfully installed faiss-cpu-1.12.0

E:\div_code\faiss_env
(faiss_env) λ uv pip install --upgrade pip wheel setuptools
Resolved 3 packages in 276ms
Prepared 3 packages in 433ms
Installed 3 packages in 10.82s
 + pip==25.2
 + setuptools==80.9.0
 + wheel==0.45.1

E:\div_code\faiss_env
(faiss_env) λ uv pip install jiter
Resolved 1 package in 346ms
Prepared 1 package in 129ms
Installed 1 package in 1.02s
 + jiter==0.11.1

E:\div_code\faiss_env
(faiss_env) λ python -c "import jiter; print('jiter OK')"
jiter OK
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  I'm trying to install python 3.11.11 on windows 10 - it doesn't work Petonique 2 5,252 Feb-04-2025, 05:42 PM
Last Post: snippsat
  Accessing item in the system tray on Windows 11 mariox 0 1,112 Aug-22-2024, 05:11 PM
Last Post: mariox
  Windows install does not create .exe, shortcut,etc to open hammer 4 4,295 May-05-2022, 12:33 PM
Last Post: hammer
  Cannot install TensorFlow 2.2 in Windows 10 Led_Zeppelin 1 2,812 Apr-28-2022, 06:35 PM
Last Post: Larz60+
  WinError 2, since fresh new Windows 10 install alok 1 3,052 Jan-06-2022, 11:20 PM
Last Post: lucasbazan
  How to link Sublime Text 3 Build system to Python 3.9 Using Windows 10 Fanman001 2 6,353 Mar-04-2021, 03:09 PM
Last Post: martpogs
  Difference between os.system("clear") and os.system("cls") chmsrohit 7 22,285 Jan-11-2021, 06:30 PM
Last Post: ykumar34
  pygame install windows 10 s fenny666 4 9,008 Mar-21-2020, 03:55 AM
Last Post: fenny666
Question Difference between Python's os.system and Perl's system command Agile741 13 13,026 Dec-02-2019, 04:41 PM
Last Post: Agile741
  unable to install sip/pyqt on windows 10 phparion 1 6,067 Oct-27-2018, 11:03 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020