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,都装上。有用的。
相关推荐
运维行者_10 小时前
跨境企业 OPM:多币种订单与物流同步管理,依靠网络自动化与 snmp 软件
大数据·运维·网络·数据库·postgresql·跨境企业
oMcLin10 小时前
如何在Ubuntu 20.04上通过配置ZFS存储池,提升高性能存储系统的可靠性与扩展性
linux·运维·ubuntu
独自破碎E10 小时前
使用Linux的top命令进行性能监控的步骤?
linux
Ha_To10 小时前
2026.1.6 Windows磁盘相关
linux·运维·服务器
牛奶咖啡1310 小时前
shell脚本编程(一)
linux·shell·shell脚本·shell脚本解析·grep命令语法·grep选项详解·正则表达式解析
地球资源数据云10 小时前
2019-2024年中国逐年10米分辨率最大值合成NDVI数据集
大数据·运维·服务器·数据库·均值算法
小白冲鸭10 小时前
苍穹外卖-前端环境搭建-nginx双击后网页打不开
运维·前端·nginx
fiveym11 小时前
CPU睿频与核心核心问题全解析
运维·硬件架构
天码-行空11 小时前
【大数据环境安装指南】HBase集群环境搭建教程
大数据·linux·运维·hbase
天空之外13611 小时前
生成一个带 IP 的自签证书、制作Http证书
linux·运维·服务器