marella / ctransformers

Python bindings for the Transformer models implemented in C/C++ using GGML library.
MIT License
1.76k stars 137 forks source link

Adapt to Upcoming pip Behavior Change for --no-binary Option #178

Open wenboown opened 7 months ago

wenboown commented 7 months ago

Description:

Recent usage of the pip command with the --no-binary option has led to a deprecation warning indicating upcoming changes in pip 23.1. The --no-binary option, which has so far prevented pip from using binary packages and from utilizing the wheel cache, will no longer influence the wheel cache in the future. To ensure our installation process is aligned with these upcoming changes, we need to adjust our pip install commands.

Warning Message:

When installing ctransformers with the command:

CT_METAL=1 pip install ctransformers --no-binary ctransformers

We receive the following deprecation warning:

DEPRECATION: --no-binary currently disables reading from the cache of locally built wheels. In the future --no-binary will not influence the wheel cache. pip 23.1 will enforce this behaviour change. A possible replacement is to use the --no-cache-dir option.

Resources: