question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No module named 'manimlib.__main__'

See original GitHub issue

I followed the steps of the macOS installation cited in the README:

git clone https://github.com/3b1b/manim.git
cd manim
pip install -e .
manimgl example_scenes.py OpeningManimExample

But when I run the last command, this error appears:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/bin/manimgl", line 6, in <module>
    from manimlib.__main__ import main
ModuleNotFoundError: No module named 'manimlib.__main__'

I don’t know how to solve it, but I suspect it might have something to do with the previous manim installation I had. I moved the manim folder to another directory when I cloned the new version. Don’t know how to fix this.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
einarfcommented, Feb 25, 2021

You might be running a different manimgl command or something?

Try installing manim in a virtualenv. I think something like this on macOS

git clone https://github.com/3b1b/manim.git
cd manim
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -e .
manimgl example_scenes.py OpeningManimExample
0reactions
ya-echocommented, Jun 17, 2021

Try reinstall it.

I had reinstall many times, but it’s still not work. Then I tried @niedong 's method, it’s work. Anyway, thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

No module named manimlib : r/manim - Reddit
No module named manimlib. I have tried many different ways to install manim. My latest method is to copy the code from git...
Read more >
Why do I have an error while running Manim inside PyCharm?
When I run main.py : ... import * ModuleNotFoundError: No module named 'manimlib.imports'**. And there is manimlib directory inside manim.
Read more >
ModuleNotFoundError: No module named 'manimlib'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'manimlib' How to remove the ModuleNot.
Read more >
manimlib - PyPI
Manim is an animation engine for explanatory math videos. It's used to create precise animations programmatically, as seen in the videos at 3Blue1Brown....
Read more >
manim - Bountysource
... line 155, in main scene = SceneClass(**scene_kwargs) File ... from manimlib.imports import * ModuleNotFoundError: No module named 'manimlib.imports'.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found