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,都装上。有用的。
相关推荐
电鱼智能的电小鱼20 分钟前
EFISH-SBC-RK3588无人机地面基准站项目
linux·网络·嵌入式硬件·机器人·无人机·边缘计算
foo1st20 分钟前
Tomcat Web应用(Ubuntu 18.04.6 LTS)部署笔记
ubuntu·tomcat
电鱼智能的电小鱼26 分钟前
基于 EFISH-SBC-RK3588 的无人机环境感知与数据采集方案
linux·网络·嵌入式硬件·数码相机·无人机·边缘计算
小诸葛的博客1 小时前
详解Linux中的定时任务管理工具crond
linux·运维·chrome
一默19911 小时前
CentOS 7.9升级OpenSSH到9.9p2
linux·运维·centos
keep intensify2 小时前
Linux常用指令
linux·服务器·php
带电的小王2 小时前
sherpa-ncnn:Linux(x86/ARM32/ARM64)构建sherpa-ncnn --语音转文本大模型
linux·语音识别·实时音视频·sherpa-ncnn
沧浪之水!2 小时前
【Linux网络】:套接字之UDP
linux·网络·udp
BranH2 小时前
Linux系统中命令设定临时IP
linux·运维·服务器
极小狐2 小时前
极狐GitLab 项目功能和权限解读
运维·git·安全·gitlab·极狐gitlab