question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR: Failed building wheel for Pillow

See original GitHub issue

Failled to build pillow on a virtualenv. Get a really long error message ending with: ERROR: Command errored out with exit status 1: venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3nw04j89/Pillow/setup.py'"'"'; __file__='"'"'/tmp/pip-install-3nw04j89/Pillow/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-d2gme0ys/install-record.txt --single-version-externally-managed --compile --install-headers venv/include/site/python3.7/Pillow Check the logs for full command output.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9

github_iconTop GitHub Comments

26reactions
HelloMukamacommented, Apr 18, 2021

I solved this by explicitly deleting the version numbering inside of the requirements.txt file That way pip fetched the latest pillow version so if forexample you had … pillow==7.0.2 change it to … pillow

then save the file and rerun the pip install -r requirements.txt line and it shd work

9reactions
sucrecacaocommented, Oct 21, 2019

Solved by making sure every Pillow external library are installed. See the list here https://pillow.readthedocs.io/en/latest/installation.html Then remplaced Pillow==6.2.0 (latest version) in requirements.txt and it worked

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed building wheel for pillow - python 2.7 - Stack Overflow
The problem I ran into was python module Pillow version 3.7 failing to compile during python -m pip install Pillow . The headers...
Read more >
[Fixed] "Failed building wheel for Pillow" in Python - CSEStack
I come across this error “Failed building wheel for Pillow” while setting up the Python Django project. I have executed these commands on...
Read more >
[Solved] Failed building wheel for Pillow error in Python
The error "Failed building wheel for Pillow" is sometimes caused when the package you are trying to install doesn't have available wheels for...
Read more >
ERROR: Can't roll back Pillow; was not uninstalled - Odoo
txt file using pip3 results in the following error. Building wheels for collected packages: Pillow, psycopg2. Building wheel for Pillow (setup.
Read more >
解决安装Failed building wheel for pillow_爱吃章鱼的怪兽的博客
解决安装Failed building wheel for pillow · 在安装python库时出现了这个错误 · 问题原因:安装程序无法自动执行bulid pillow的脚本 · 解决方案:从linux ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found