Ubuntu Linux 23.10安装manimgl

  1. 简介:manimgl是使用Python语言开发数学动画的一个库。用来创建数学动画。版本有很多,今天介绍manimgl,他要依赖OpenGL库。

  2. 打开Shell命令行,连接上互联网。先安装opengl。

Shell>>> sudo apt install libgl1-mesa-dev libglm-dev libglm1-mesa-dev mesa-common-dev mesa-utils libglew-dev libglfw3-dev glew-utils

  1. 安装好python的开发环境

shell>>> sudo apt install python3-dev python3-pip python3-venv gcc g++ gdb make

  1. Ubuntu 23.10操作系统必须使用venv的虚拟目录来安装python的第三方库,他不允许直接安在系统的目录里面。

Shell>>> python3 -m venv ~/my_python

shell>>> cd ~/my_python

shell>>> source ./bin/activate

(~/my_python) shell>>> pip install manimgl

  1. 注意:也必须安装好gcc 等编译器,因为Python要依赖他们。

  2. 注意:如果嫌弃下载速度太慢,可以编写pip.cnf 文件,里面写上国内的python库的镜像站地址,并把pip.cnf文件放在/etc/之下,最好~/my_python/bin里面也放置一份。重启Shell。

// Pip.cnf 里面的内容是:::::

global

timeout=40

index-url=https://pypi.tuna.tsinghua.edu.cn/simple/

extra-index-url=

http://mirrors.aliyun.com/pypi/simple/

http://pypi.douban.com/simple

http://pypi.mirrors.ustc.edu.cn/simple/

install

trusted-host=

pypi.tuna.tsinghua.edu.cn

mirrors.aliyun.com

pypi.douban.com

pypi.mirrors.ustc.edu.cn

保存好。

  1. 要开发数学动画,还必须安装texlive、ffmpeg,都装上。有用的。
相关推荐
CIb0la几秒前
Microsoft Excel 已经40岁了
运维·智能手机·生活
apihz4 分钟前
随机英文姓名生成API接口详细教程:免费、简单、高效
android·java·运维·服务器·开发语言
IOT-Power6 分钟前
Ubuntu 上安装和配置 Samba
ubuntu
听风吟丶10 分钟前
云原生智能告警与故障自愈实战:从被动响应到主动运维
运维·云原生
石牌桥网管10 分钟前
Linux ip 命令教程
linux·运维·tcp/ip
Umi·12 分钟前
shell 条件测试
linux·前端·javascript
深圳安锐科技有限公司16 分钟前
工程安全自动化监测VS人工检测:全方位解析结构健康监测的必然趋势
运维·安全·自动化·自动化监测·结构健康监测
云飞云共享云桌面17 分钟前
告别传统电脑——智能装备工厂采用共享云桌面方案实现降本增效
运维·服务器·网络·人工智能·电脑
东方-教育技术博主18 分钟前
大模型的服务器部署
运维·服务器
starvapour20 分钟前
替换Ubuntu各种命令的默认编辑器
linux·ubuntu·编辑器