我正在尝试在 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) 我将 Ubuntu 从 16.04 升级到 16.10,之前运行的 python3 代码不再运行,即:
$ python3
Python 3.5.2+ (default, Sep 22 2016, 12:18:14)
[GCC 6.2.0 20160927] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt4.QtWebKit import QWebView
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'PyQt4.QtWebKit'
>>>
Run Code Online (Sandbox Code Playgroud)
python3-pyqt4安装包。
为什么会这样,需要什么其他软件包才能工作?