I am trying to install Manim in my elementary OS . After installing when i tried to open the example_scenes.py by python3.7 -m manim example_scenes.py SquareToCircle -pl
, i am getting the following error :
Traceback (most recent call last): File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/zarif98sjs/InstallManim/manim_3Feb/manim.py", line 3, in <module> import manimlib.extract_scene File "/home/zarif98sjs/InstallManim/manim_3Feb/manimlib/extract_scene.py", line 9, in <module> from manimlib.scene.scene import Scene File "/home/zarif98sjs/InstallManim/manim_3Feb/manimlib/scene/scene.py", line 8, in <module> from manimlib.animation.animation import Animation File "/home/zarif98sjs/InstallManim/manim_3Feb/manimlib/animation/animation.py", line 6, in <module> from manimlib.mobject.mobject import Mobject File "/home/zarif98sjs/InstallManim/manim_3Feb/manimlib/mobject/mobject.py", line 8, in <module> from colour import Color ImportError: cannot import name 'Color' from 'colour' (/usr/local/lib/python3.7/dist-packages/colour/__init__.py)
I tried sudo pip3 install colour
and sudo pip3 install color
but still facing the same issue .
Any idea how to resolve this issue ?
I got help from Manim discord community and solved this using python -m pip install color
and python -m pip install colour
. The problem was happening because of 2 version of python installed and pip was not referring to the correct version