Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install faster-whisper and python version #1210

Closed
Oefuli opened this issue Dec 19, 2024 · 6 comments
Closed

pip install faster-whisper and python version #1210

Oefuli opened this issue Dec 19, 2024 · 6 comments

Comments

@Oefuli
Copy link

Oefuli commented Dec 19, 2024

The installation in a Conda environment with Python 3.12.7 always gave me an error. A downgrade of Python in a fresh Conda environment to Python 3.11.0 solved the problem.

@MahmoudAshraf97
Copy link
Collaborator

What was the error?

@MahmoudAshraf97 MahmoudAshraf97 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 1, 2025
@Oefuli
Copy link
Author

Oefuli commented Jan 1, 2025

--> What was the error?

error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.

See /usr/share/doc/python3.12/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

@MahmoudAshraf97
Copy link
Collaborator

This has no relation to this package or the python version, it's related to how your system and environment is managed

@Oefuli
Copy link
Author

Oefuli commented Jan 1, 2025

So why does it appear in one Python version and not in the other? The only difference is the Python version in the Conda environment created.

@MahmoudAshraf97
Copy link
Collaborator

I can reproduce it with python 3.10 on an internal server environment, as I said this is not related to this package

@Oefuli
Copy link
Author

Oefuli commented Jan 1, 2025

Ok, I investigated it a bit with Conda: It happens if you don't use “python=x.y.z” when creating the environment with Conda. So if you use “conda create --name my_env” instead of “conda create --name my_env python=3.5”. Thanks for the hint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants