I am using virtualenv. When I run pip install pillow
under it I get following:
OSError: [Errno 1] Operation not permitted:
'/windows/code/linux/cups/lib/python2.7/site-packages/PIL/GimpGradientFile.py'
When I use sudo pip install pillow
I get it installed globally, and pip freeze under virtualenv don't display it (global does)
How can I install pillow under virtualenv?
Used sudo -i
to get root, then activated virtualenv, and pip install pillow
worked correctly.
try as su, no sudo.
su
enter to you virtualenv and:
pip install pillow
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.