django圖形驗證碼之一安裝庫
阿新 • • 發佈:2020-10-20
1.安裝django-simple-captcha庫
pip install django-simple-captcha
Attempting uninstall: Django
Found existing installation: Django 2.1.8
Uninstalling Django-2.1.8:
Successfully uninstalled Django-2.1.8
ERROR: Could not install packages due to an EnvironmentError: [WinError 145] 目錄不是空的。: ‘D:\Program Files (x86)\Python38\Lib\site-packages\django\~-ntri
又報錯,簡直要懷疑人生了
試下:
apt-get -y install libz-dev libjpeg-dev libfreetype6-dev python -dev
也是不行的
解決方法:
先執行 pip install Pillow,再執行pip install django-simple-captcha
就會安裝成功: