我正在尝试在 ubuntu 上安装 PIL 一个 python 模块
我首先需要使用以下命令安装一个名为 python-imaging 的包
sudo apt-get build-dep python-imaging
Run Code Online (Sandbox Code Playgroud)
当我尝试这样做时,我收到错误
E: You must put some 'source' URIs in your sources.list
Run Code Online (Sandbox Code Playgroud)
我看到了这个问题 whihc 显示了如何通过 GUI 进行修复,但我使用的是命令行。有谁知道我如何解决这个错误..?
更新:根据以下答案,我更新了我的包裹列表,但现在出现此错误。不确定它是否相关,如果不是,我将开始一个新问题,因为我在任何地方都找不到对错误的引用。
E: Build-Depends dependency for python-imaging cannot be satisfied because candidate version of package python-all-dev can't satisfy version requirements
Run Code Online (Sandbox Code Playgroud) 我正在尝试emacs在 Ubuntu 12.04上编译。这是因为我想使用 Emacs 24.2。
但是,我收到以下错误。我该如何解决?
checking for long file names... yes
checking for X... no
checking for X... true
configure: error: You seem to be running X, but no X development libraries
were found. You should install the relevant development files for X
and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
sure you have development files for image handling, i.e.
tiff, gif, jpeg, png and xpm.
If you are sure you …Run Code Online (Sandbox Code Playgroud)