-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Fix installation instructions #401
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
Fix installation instructions #401
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems better to me.
|
Ah good catch! Yes the instructions are missing a step. Could you please try the command suggested by naveen521kk? That should work and should be the actual fix for the docs ;) |
Co-authored-by: Naveen M K <naveen@syrusdark.website>
|
The suggestion by @naveen521kk is indeed better. There's also an alternate command that does the same job: python3 setup.py installI don't know that it's necessarily better or worse, but I thought I'd put it here in case @naveen521kk or @leotrs (or anyone else) has any opinion. That aside, I dug a bit and went back to 3b1b's Manim where I got the two commands from my original suggestion (specifically from the Dockerfile). The install-from-repo instructions appear to be written not to install a system-wide If that were the intention here, the warning included in the installation instructions here wouldn't be needed. (It's also possible installing from the repo would overwrite a To summarize the commands for either situation...
python3 -m pip install -r requirements.txt # to install requirements
python3 ./[some file] example_scenes/basic.py SquareToCircle -pl # to run ManimSo... Which should be included here? System-wide installation instructions, or a hackable-alongside-a-stable-install installation instructions? (Or both?) |
|
I guess in general we would want to have both. OTOH, I feel like most people with enough experience to want to contribute and have a bleeding-edge version of manim installed (whether or not alongside a system-wide stable version) would have enough tech chops to do it themselves... maybe? Yes? No? I'm thinking out loud here. On the other other hand, we are about to move to poetry and away from pip (#165 ), so I'm not entirely sure how relevant this is now. At the very least we should be discussing this in terms of poetry, not pip. cc @naveen521kk |
|
To reply to my own message...
This doesn't appear to be the case, but it seems to work this way in the other direction. Moving on...
My experience: I had been using the
Perhaps you're right in that this maybe isn't the time to be talking about this particular point. Looks like I have some poetry reading ahead of me... At this point, since the latest commit in this PR now has a command to install without requiring |
I'm not sure why you would want to do this. If you already have the source code, then "installing" it just means moving the files to the appropriate locations so that python can find it when you do
I agree. I was being too quick to judge before. We should include installation instructions that work for (most of the common) uses cases, without assuming previous knowledge. |
For me, trying out Manim after making a change in the code means that it would be advantageous to try it out without installing it. That way I can keep using my installed version of Manim (via pip, or directly from the repo) to make beautiful videos, and run the modified version without having to install anything. If you have a look at 3b1b's instructions, you'll see that manim can be run straight from the repo without installing it on the system, using Running the Anyway, hopefully that provides some context as to the why. As far as how, I'm not sure. The file I mentioned in 3b1b's instructions doesn't exist in this repo anymore, and my Python skills aren't sufficient (at least tonight) to figure out what file would serve as an equivalent, or how to make an equivalent file myself. I've tried... :(
All good. The installation command already commited in this PR does the trick for a system-level installation, so I'd suggest getting it merged if it's suitable enough for now and work on the rest* after. * The rest being instructions for installing the requirements via |
|
Ok so now |
Got it. Closed. Thanks for the
Pip installs catch all the requirements since they're listed in setup.py, and since I haven't been able to use it without actually installing it, I personally haven't needed it. Deleting the file has no effect on the ability to install with pip. In case that's helpful. |
|
Yeah, I recommend you look into setting up virtual environments if you don't have those already. I have a virtual environment with the latest (supposedly stable) version of manim-ce to make videos, and a different environment with my own fork which is ahead of manim-ce by a few commits. Both are installed with the |
List of Changes
Motivation
The provided installation command (
python3 -m pip install -r requirements.txt) doesn't appear to work. The executablemanimdoesn't exist on the system after. The two commands I've provided do the trick.Acknowledgement