想要适用于 ubuntu 的 gespeaker。因此我设法在 Ubuntu 20.04 安装中安装了 Python2。
sudo apt-get install python2
sudo python2 setup.py install
看起来没有错误 -/
仍然声称 gespeaker 在软件应用程序和命令行中具有(未列出的)依赖项
sudo dpkg -i "gespeaker_0.8.6-1_all.deb"
结果:
sudo dpkg -i "gespeaker_0.8.6-1_all.deb"
Selecting previously unselected package gespeaker.
(Reading database ... 197742 files and directories currently installed.)
Preparing to unpack gespeaker_0.8.6-1_all.deb ...
Unpacking gespeaker (0.8.6-1) ...
dpkg: dependency problems prevent configuration of gespeaker:
gespeaker depends on python-glade2; however:
Package python-glade2 is not installed.
gespeaker depends on python-gobject; however:
Package python-gobject is not installed.
gespeaker depends on python-gtk2; however:
Package python-gtk2 is not installed.
gespeaker depends on python-xdg; however:
Package python-xdg is not installed.
gespeaker depends on python:any (>= 2.7.5-5~); however:
dpkg: error processing package gespeaker (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Errors were encountered while processing:
gespeaker
espeak "This is a test"
在命令行中运行良好。Gespeaker 列在 GUI 应用程序列表中,启动失败。上次使用 ubuntu 时遇到过这个问题,似乎是 python 依赖项?
更新:
sudo apt-get upgrade
结果:
The following packages have unmet dependencies:
gespeaker : Depends: python-glade2 but it is not installable
Depends: python-gobject but it is not installed
Depends: python-gtk2 but it is not installable
Depends: python-xdg but it is not installed
Depends: python:any (>= 2.7.5-5~)
答案1
好的,您正在尝试使用 GeSpeakerUbuntu 18.04 LTS 存储库。此 Ubuntu 上一版本包含更多 Python 2 库。您仍然可以通过手动下载在 20.04 LTS 上安装它们:
cd ~/Downloads
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/g/gespeaker/gespeaker_0.8.6-1_all.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-glade2_2.24.0-5.1ubuntu2_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/main/d/dbus-python/python-dbus_1.2.6-1_amd64.deb
sudo apt-get install ./gespeaker_0.8.6-1_all.deb ./python-glade2_2.24.0-5.1ubuntu2_amd64.deb ./python-gtk2_2.24.0-5.1ubuntu2_amd64.deb ./python-dbus_1.2.6-1_amd64.deb
享受。