Ved-форум поддержки
Программирование => Python => Тема начата: AdminUser от Марта 20, 2019, 03:50:34 pm
-
Всем привет!
Пытаюсь становить pillow на pypy, но получаю следующую ошибку:
running build_ext
The headers or library files could not be found for zlib, a required dependency when compiling Pillow from source
Traceback <most recent call last>:
File "<module>", line 1, in <module>
File "c:\...\setup.py", line 812, in <module>
raise RequiredDependencyException<nsg>
Можно ли это как-то победить?
-
running build_ext
Найдите файл build_ext.py. На какой строке ошибка?
-
Не знаю точно. Но судя по посту на bitbucket здесь:
# Now actually compile and link everything.
self.build_extensions()
Это последняя строка метода run, описание которого:
# 'self.extensions', as supplied by setup.py, is a list of
# Extension instances. See the documentation for Extension (in
# distutils.extension) for details.
#
# For backwards compatibility with Distutils 0.8.2 and earlier, we
# also allow the 'extensions' list to be a list of tuples:
# (ext_name, build_info)
# where build_info is a dictionary containing everything that
# Extension instances do except the name, with a few things being
# differently named. We convert these 2-tuples to Extension
# instances as needed.
-
Попробуйте сделать следующие вещи:
1. Попробуйте сменить версии pillow
2. Сменить версию pypy (маловероятно, что поможет, но мало ли)
3. Попробовать через другой pip
4. Попробовать откомпилировать с ключом --disable-zlib