manim 安装

之前在b站上面看到一个动画制作软件manim,对其制作过程,一直恋恋不忘。

时间恍惚,过去两个月,突然想起这个事情了,于是打算来安装一下:

$ conda create -n manim 
$ conda activate manim
$ conda install pip
$ pip install manimlib

pip 报错:

ERROR: Command errored out with exit status 1:
     command: ~/anaconda3/envs/manim/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ukjq_wx9/manimlib/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ukjq_wx9/manimlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-etps_v2z
         cwd: /tmp/pip-install-ukjq_wx9/manimlib/
    Complete output (33 lines):
    WARNING: The repository located at mirrors.aliyun.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host mirrors.aliyun.com'.
    ERROR: Could not find a version that satisfies the requirement pbr (from versions: none)
    ERROR: No matching distribution found for pbr

发现少了pbr,直接安装:

pip install pbr

重新安装就没得问题了

$ pip install pbr
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting pbr
  Downloading http://mirrors.aliyun.com/pypi/packages/96/ba/aa953a11ec014b23df057ecdbc922fdb40ca8463466b1193f3367d2711a6/pbr-5.4.5-py2.py3-none-any.whl (110 kB)
     |████████████████████████████████| 110 kB 1.6 MB/s 
Installing collected packages: pbr
Successfully installed pbr-5.4.5
(manim) lhpc04@lhpc04:/media/lhpc04/da8a185a-95f0-4cbd-ba0a-5fe144872bd7/worksapce/source_got/3d/manim$ pip install manimlib
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting manimlib
  Downloading http://mirrors.aliyun.com/pypi/packages/a8/0c/dd48debbf8ced0aa16df62e8f16162521f0bbc086398cdbbd51faf9fca72/manimlib-0.1.11.tar.gz (4.8 MB)
     |████████████████████████████████| 4.8 MB 2.4 MB/s 
Collecting argparse
  Downloading http://mirrors.aliyun.com/pypi/packages/f2/94/3af39d34be01a24a6e65433d19e107099374224905f1e0cc6bbe1fd22a2f/argparse-1.4.0-py2.py3-none-any.whl (23 kB)
Collecting colour
  Downloading http://mirrors.aliyun.com/pypi/packages/74/46/e81907704ab203206769dee1385dc77e1407576ff8f50a0681d0a6b541be/colour-0.1.5-py2.py3-none-any.whl (23 kB)
Collecting numpy
  Downloading http://mirrors.aliyun.com/pypi/packages/01/c6/87592f924246da1e58673cf708a2748754517c5cf050726238d6cfbd8df4/numpy-1.18.5-cp38-cp38-manylinux1_x86_64.whl (20.6 MB)
     |████████████████████████████████| 20.6 MB 6.6 MB/s 
Collecting Pillow
  Downloading http://mirrors.aliyun.com/pypi/packages/06/24/a577011ad2c0dd9793de7fede96af9fb7e97de31f47aa209f5d8e8979124/Pillow-7.1.2-cp38-cp38-manylinux1_x86_64.whl (2.1 MB)
     |████████████████████████████████| 2.1 MB 38.5 MB/s 
Collecting progressbar
  Downloading http://mirrors.aliyun.com/pypi/packages/a3/a6/b8e451f6cff1c99b4747a2f7235aa904d2d49e8e1464e0b798272aa84358/progressbar-2.5.tar.gz (10 kB)
Collecting scipy
  Downloading http://mirrors.aliyun.com/pypi/packages/f3/08/8bdcdcd149ea41b655956feb7c19ebf7e1f561738bd5570b6ae015daf411/scipy-1.4.1-cp38-cp38-manylinux1_x86_64.whl (26.0 MB)
     |████████████████████████████████| 26.0 MB 21.6 MB/s 
Collecting tqdm
  Downloading http://mirrors.aliyun.com/pypi/packages/f3/76/4697ce203a3d42b2ead61127b35e5fcc26bba9a35c03b32a2bd342a4c869/tqdm-4.46.1-py2.py3-none-any.whl (63 kB)
     |████████████████████████████████| 63 kB 24.6 MB/s 
Collecting opencv-python
  Downloading http://mirrors.aliyun.com/pypi/packages/0b/61/843ab00a3ed67f3f50be786bd9c78ff52c55841a13f26f8cb3cd8502eb09/opencv_python-4.2.0.34-cp38-cp38-manylinux1_x86_64.whl (28.2 MB)
     |████████████████████████████████| 28.2 MB 2.2 MB/s 
Collecting pycairo
  Downloading http://mirrors.aliyun.com/pypi/packages/e8/9d/c8be300fc6b1298559d37a071c3833b0b251e0fff334d2e4c408d5789162/pycairo-1.19.1.tar.gz (205 kB)
     |████████████████████████████████| 205 kB 583 kB/s 
Collecting pydub
  Downloading http://mirrors.aliyun.com/pypi/packages/7b/d1/fbfa79371a8cd9bb15c2e3c480d7e6e340ed5cc55005174e16f48418333a/pydub-0.24.1-py2.py3-none-any.whl (30 kB)
Collecting pygments
  Downloading http://mirrors.aliyun.com/pypi/packages/2d/68/106af3ae51daf807e9cdcba6a90e518954eb8b70341cee52995540a53ead/Pygments-2.6.1-py3-none-any.whl (914 kB)
     |████████████████████████████████| 914 kB 81.7 MB/s 
Building wheels for collected packages: manimlib, progressbar, pycairo
  Building wheel for manimlib (setup.py) ... done
  Created wheel for manimlib: filename=manimlib-0.1.11-py3-none-any.whl size=212148 sha256=f40516710828bec8672056cac31599249aea8f12a0f308e1a22e482e18b56706
  Stored in directory: ~/.cache/pip/wheels/2d/42/d5/5b7f98f1f1735b4ab8c0fd2605abf1c3e44f2d3b642a64ccf6
  Building wheel for progressbar (setup.py) ... done
  Created wheel for progressbar: filename=progressbar-2.5-py3-none-any.whl size=12074 sha256=0afb8bb64b981d35681273370d49463368069513c2a6d6c80f388a975b5f32b6
  Stored in directory: ~/.cache/pip/wheels/60/37/46/cf523c33a1b2cd85ce5f2f3d7dbc5791f8d8bb04905e868df1
  Building wheel for pycairo (setup.py) ... done
  Created wheel for pycairo: filename=pycairo-1.19.1-cp38-cp38-linux_x86_64.whl size=243393 sha256=ae8aaf093f9f920815afb275f2dba97e2faa5624cec6414216a54620a1170e20
  Stored in directory: ~/.cache/pip/wheels/63/c3/a3/a6488642b146d759a3c3dec94310243d82642439dea72e9687
Successfully built manimlib progressbar pycairo
Installing collected packages: argparse, colour, numpy, Pillow, progressbar, scipy, tqdm, opencv-python, pycairo, pydub, pygments, manimlib
Successfully installed Pillow-7.1.2 argparse-1.4.0 colour-0.1.5 manimlib-0.1.11 numpy-1.18.5 opencv-python-4.2.0.34 progressbar-2.5 pycairo-1.19.1 pydub-0.24.1 pygments-2.6.1 scipy-1.4.1 tqdm-4.46.1

运行官方的例子:

python -m manim example_scenes.py SquareToCircle -pl

运行期间报错,我运行安装了下面这些:

pip install pyreadline
pip install colour
pip install pycairo==1.11.0 
pip install pydub

参考

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值