- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在尝试使用 reviewcode python/django 的 git 存储库。安装时
easy_install ReviewBoard
我收到以下错误
Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1.
安装 PIL 依赖项时发生此错误。我使用
手动安装pip install PIL
安装成功
但是在创建网站时:
sudo rb-site install /var/www/reviewboard
但是现在遇到了恼人的错误:
pkg_resources.DistributionNotFound: PIL
任何线索,如何解决这个问题?
更新
PIL SETUP SUMMARY
--------------------------------------------------------------------
version Pillow 2.3.0
platform linux2 2.7.5+ (default, Sep 19 2013, 13:48:49)
[GCC 4.8.1]
--------------------------------------------------------------------
*** TKINTER support not available
--- JPEG support available
--- ZLIB (PNG/ZIP) support available
*** LIBTIFF support not available
--- FREETYPE2 support available
*** LITTLECMS2 support not available
*** WEBP support not available
*** WEBPMUX support not available
--------------------------------------------------------------------
To add a missing option, make sure you have the required
library, and set the corresponding ROOT variable in the
setup.py script.
To check the build, run the selftest.py script.
changing mode of build/scripts-2.7/pilprint.py from 644 to 755
changing mode of build/scripts-2.7/pilconvert.py from 644 to 755
changing mode of build/scripts-2.7/pilfont.py from 644 to 755
changing mode of build/scripts-2.7/pilfile.py from 644 to 755
changing mode of build/scripts-2.7/pildriver.py from 644 to 755
changing mode of /home/naveen/ENV/ly-subs/bin/pilprint.py to 755
changing mode of /home/naveen/ENV/ly-subs/bin/pilconvert.py to 755
changing mode of /home/naveen/ENV/ly-subs/bin/pilfont.py to 755
changing mode of /home/naveen/ENV/ly-subs/bin/pilfile.py to 755
changing mode of /home/naveen/ENV/ly-subs/bin/pildriver.py to 755
最佳答案
如 Python 1.6 release notes 中所述:
Pillow is now the preferred image manipulation library to use with Django. PIL is pending deprecation (support to be removed in Django 1.8). To upgrade, you should first uninstall PIL, then install Pillow.
关于python - pkg_resources.DistributionNotFound : PIL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21044615/
我试图在同一个 python 脚本中使用同一个库的两个不同版本(使用 easy_install --multi-version 安装)。下面的代码说明了总体思路。 如果我独立调用每个版本,一切都很好。
我无法导入 pkg_resources。每当我尝试时它都会显示 Python 3.5.2 (default, Jun 28 2016, 08:46:01) [GCC 6.1.1 20160602] o
无法让“intel-nauta”运行,因为它抛出此错误:pkg_resources.DistributionNotFound:未找到“jsonschema”发行版,并且是应用程序所需的[19160]
Pip 看到一个版本为 1.4.0 的包,但随后提示说我需要它的 >=0.9.34 版本。不是 1.4.0 > 0.9.34 吗? root@36e7a0a55174:~/tldr-integrati
为什么 this simple program导致运行时出现 pkg_resources.DistributionNotFound 错误,我们该如何解决? #setup.py from setupto
我正在尝试使用 reviewcode python/django 的 git 存储库。安装时 easy_install ReviewBoard 我收到以下错误 Setup script exited
我正在尝试使用端口 80。所以当我使用命令“sudo paster serve development.ini --reload” 我收到这个错误 pkg_resources.VersionConfl
我正在尝试在 Google App Engine 上安装一个软件包。该软件包相当广泛地依赖于 pkg_resources,但无法在 App Engine 上运行 setup.py。 但是,源代码中没有
我想找到一个文件的分布。该文件应该发现它自己的分布。 我试过了,但是不行: import os import pkg_resources for dist in pkg_resources.find_
我正在处理 CSV 文件并具有以下工作代码: reader = csv.reader(open(filename, 'rU'), dialect='excel') header = reader.ne
我尝试使用 pip install tensorflow --upgrade 升级 tensorflow。在卸载旧版本的 setuptools 期间出现了一些错误: PermissionError:
在 $PYTHONPATH 或 sys.path 中获取包的包版本的推荐方法是什么? 我记得 pkg_resource 模块对此有一些功能,但我找不到任何相关信息。请不要向我指出使用 version.
我正在将 Django 应用程序部署到开发服务器并在运行 pip install -r requirements.txt 时遇到此错误: Traceback (most recent call las
我正在尝试安装一个新模 block ,但我发现 pip不起作用 - 它显示 pkg_resources.DistributionNotFound: The 'pip==1.5.6' distribut
我想在MacOS上使用Python3.7 我已经是Python 2.7版本了。 我在.bash_profile,alias python="/usr/local/bin/python3.7"和sour
如何纠正这个错误: Traceback (most recent call last): File "c:\Apps\pypi\bin\buildout-script.py", line 15,
我想安装这个 repo https://github.com/armooo/cloudprint在我的树莓派上。说明在这里 https://baxeico.wordpress.com/2014/06/
我正在尝试使用 Py2Exe 从 ReviewBoard 的 postreview.py 构建 Windows 可执行文件,因此我的用户无需安装 Python 即可发布评论请求。 我遇到了编译版本找不
我正在尝试使用 Pyinstaller 打包我的 Python 脚本。我的脚本导入了第三方模块 Exscript 和 Netaddr。当我尝试运行 Pyinstaller 生成的可执行文件时出现以下错
我正在尝试通过以下命令使用 cx_Freeze setup.py 文件构建 EXE: python setup.py bdist_msi 命令的输出以:结尾 Copying data from pac
我是一名优秀的程序员,十分优秀!