-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Mac installation: since changes in Homebrew for Python 3.12, pip3 install manim
doesn't work. Improvement of the doc is needed.
#3656
Comments
Ah, yes, this is a problem. The proper solution and what homebrew expects you to do now is to use a virtual environment in which manim can then be installed. That is, if you have a directory for your manim projects use the terminal to navigate there, then run python3 -m venv .py3env --prompt=manim-env where Then, to activate the environment you type source .py3env/bin/activate in your terminal. From there on, the terminal should display the chosen prompt in the beginning of each new line. Now you can run pip install manim without running into the "externally managed" problem. |
Thanks. I don't want to use virtual environment (too complex, more things to learn). This change from PEP 668 is for power users. I have tried this: Content of the file:
Then, run And it works!
The installation message ended with this successfuly message:
But when I test a simple file, I obtain this error:
I see at #3585 that I'm not the only one. After running Can I suggest that you add also a tip in the manual about the missing Thanks for your valuable help. |
Then you will have to do exactly what you did, running Pyenv might be a reasonable alternative at this point too.
No need, we've removed the import of |
Can we publish manim as a brew-packaged application? I am not sure if it is good |
I've wanted to investigate how other small-ish Python libraries handle this. Do you happen to know any examples? There aren't so many of us developers currently active, I'd rather avoid creating yet another responsibility for us to maintain perpetually. |
I am not familiar with this. However, I found this post has tons of solutions for this question. Maybe we can just update the docs. |
Preliminaries
installation instructions.
or the solution given there does not help.
Description of error
The command
pip3 install manim
throw this error in the Terminal on Mac (Python is installed by Homebrew, as suggested in the Manim manual: https://docs.manim.community/en/stable/installation/macos.html):This is related to PEP 668 (https://peps.python.org/pep-0668/).
This is documented in this discussion on the GitHub for the Homebrew package manager project: https://github.com/orgs/Homebrew/discussions/3404
On February 21, this change was implemented, as writed here:
Installation logs
Terminal output
System specifications
System Details
python/py/python3 --version
):pip list
):LaTeX details
FFMPEG
Output of
ffmpeg -version
:Additional comments
I suggest an improvement of the manual for the Mac installation, specifically for users which have Python 3.12 installed. By the way: I have Python 3.11 installed and it's the command
brew install py3cairo ffmpeg
(see https://docs.manim.community/en/stable/installation/macos.html#required-dependencies) which has upgraded the Python version. During the installation ofpy3cairo
andffmpeg
, I read this:The documentation can be improved either by replacing
pip3 install manim
with(not working, unlike to what the text error suggest in the Terminal after the commandbrew install manim
pip3 install manim
is entered), orpip3 install manim --break-system-packages
(not tested yet, I will wait for your suggestion) or configuringpip.conf
withbreak-system-packages
by default (I don't know how to do this, I have never modified this file ; this is suggested here).What do you suggest to do yet, before the manual is updated? How can I reinstall Manim (it was installed with a previous version of Python, but in every update of Python, I loose Manim, I have the
ModuleNotFoundError: No module named 'manim'
error)?The text was updated successfully, but these errors were encountered: