解决django 验证码出不来问题


 2004  sudo apt-get install libfreetype6-dev
 2005  pip uninstall  PIL
 2006  pip install PIL==1.1.7
 2007  pkg-config --variable=libdir freetype2
 2008  pkg-config --variable=libdir zlib
 2009  export PIL_SETUP_ZLIB_ROOT=/usr/lib/i386-linux-gnu
 2010  export PIL_SETUP_FREETYPE_ROOT=/usr/lib/i386-linux-gnu
 2011  pip install -U PIL
 2012  pip uninstall PIL
 2013  pip install PIL==1.1.7
 2014  cd /usr/lib/
 2015  ls
 2016  ls -la
 2017  cd ..
 2018  ls -la lib
 2019  cd ..
 2020  ls -la lib
 2021  ls -la usr
 2022  locate libfreetype.so
 2023  sudo ln -s /usr/lib/i386-linux-gnu/libfreetype.so /usr/lib/
 2024  sudo ln -s /usr/lib/i386-linux-gnu/libz.so /usr/lib/
 2025  sudo ln -s /usr/lib/i386-linux-gnu/libjpeg.so.8 /usr/lib/libjpeg.so
 2026  pip uninstall PIL==1.1.7
 2027  pip install PIL==1.1.7
 2028  history

你可能感兴趣的:(解决django 验证码出不来问题)