just_learning Asked: 2022-01-21 14:03:01 +0800 CST2022-01-21 14:03:01 +0800 CST 2022-01-21 14:03:01 +0800 CST 如何安装 python-pygoocanvas,因为我需要它来运行旧的 ns-3.24 项目 772 我正在尝试安装 python-pygoocanvas 以运行旧的 ns-3 项目。如何在 Ubuntu 20.04.3 LTS 上安装它?我读过这个:无法找到包 python-pygoocanvas我不能说它对我有帮助:-(有更好的安装方法吗? ns3 python3 1 个回答 Voted Best Answer Knud Larsen 2022-01-22T13:04:10+08:002022-01-22T13:04:10+08:00 Ubuntu 20.04,构建 pygoocanvas 的示例 sudo apt install libgtk2.0-dev python-gobject-2-dev python-cairo-dev python-numpy libglade2-dev wget http://de.archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-5.1ubuntu2_amd64.deb wget http://de.archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2-dev_2.24.0-5.1ubuntu2_all.deb sudo gdebi python-gtk2_2.24.0-5.1ubuntu2_amd64.deb sudo gdebi python-gtk2-dev_2.24.0-5.1ubuntu2_all.deb wget https://download.gnome.org/sources/goocanvas/1.0/goocanvas-1.0.0.tar.gz [goocanvas-1.0.0]$ ./configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu/ make && sudo make install wget http://archive.debian.org/debian-archive/debian/pool/main/p/pygoocanvas/pygoocanvas_0.14.1.orig.tar.gz [pygoocanvas-0.14.1]$ ./configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu/ make && sudo make install
Ubuntu 20.04,构建 pygoocanvas 的示例