简体   繁体   中英

Can't install Pillow on server

Porting my Django application to 3.3 and Django 1.6b2, I'm currently installing on the server all the depedencies that works locally.
It seems like I can't install Pillow and neither can I install anyjson. Here are the errors I get :
For Anyjson :

error: in 'ext_modules' option (extension 'bson._cbson'), 'sources' must be present and must be a list of source filenames

For Pillow :

error: in 'ext_modules' option (extension 'PIL._imaging'), 'sources' must be present and must be a list of source filenames

Could someone help me please ? =)

Solved by removing and reinstalling distribute and setuptools. Don't know why but worked.

只是重新安装distribute是行不通的,但是将其删除以使用setuptools使其正常工作。

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM