广州做网站的价格,四川住房和城乡建设厅官网安全员,wordpress秀,优秀的网站建设解决方案1. 简介#xff1a;manimgl是使用Python语言开发数学动画的一个库。用来创建数学动画。版本有很多#xff0c;今天介绍manimgl#xff0c;他要依赖OpenGL库。 2. 打开Shell命令行#xff0c;连接上互联网。先安装opengl。 Shell sudo apt install l…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 3. 安装好python的开发环境 shell sudo apt install python3-dev python3-pip python3-venv gcc g gdb make 4. 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
5. 注意也必须安装好gcc 等编译器因为Python要依赖他们。 6. 注意如果嫌弃下载速度太慢可以编写pip.cnf 文件里面写上国内的python库的镜像站地址并把pip.cnf文件放在/etc/之下最好~/my_python/bin里面也放置一份。重启Shell。 // Pip.cnf 里面的内容是 [global] timeout40 index-urlhttps://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 保存好。 7. 要开发数学动画还必须安装texlive、ffmpeg都装上。有用的。