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,都装上。有用的。
相关推荐
瓶中怪7 小时前
ROS2 机器人软件系统
linux·c++·python·ubuntu·vmware·ros2·机器人软件开发
iangyu7 小时前
linux配置时间同步
linux·运维·服务器
天空'之城7 小时前
Linux 系统编程 04:进程基础
linux·开发语言·进程基础
从零开始的代码生活_7 小时前
NAT、代理服务与内网穿透详解
linux·服务器·网络·c++·http·智能路由器
灯厂码农7 小时前
C语言内存管理——内存对齐与共用体union
linux·服务器·c语言
charlie1145141917 小时前
Cinux: 加载第一个内核:从 bootloader 跳进 C++
linux·开发语言·c++·嵌入式
Tian_Hang8 小时前
eclipse ditto 学习笔记
运维·服务器·开发语言·javascript·3d
江畔柳前堤8 小时前
第13章:docker生产环境部署实战
运维·git·docker·容器·代码复审
爱喝水的鱼丶8 小时前
SAP-ABAP:接口 vs 抽象类:ABAP OOP两类扩展方式的差异与选型原则
运维·性能优化·sap·abap·erp·经验交流
iCxhust9 小时前
linux目录是否保存在硬盘 启动后读入解析的
linux·运维·服务器