我正在尝试安装django-recaptcha。我输入了
pip install django-recaptcha==0.0.4
我无法安装它。我面临的错误是:
error: could not create '/Library/Python/2.7/site-packages/captcha': Permission denied
----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/Users/Projects/drinker/build/django-recaptcha/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /var/folders/x6/1rbbd59j1w7dx74lrrs181vh0000gn/T/pip-axdzU5-record/install-record.txt failed with error code 1 in /Users/Projects/drinker/build/django-recaptcha
我在settings.py中添加了“验证码”,但它给了我这个错误:
Error: No module named captcha
需要一些帮助......
答案 0 :(得分:4)
尝试以sudo用户身份安装,因为它明确表示“权限被拒绝”,
sudo pip install django-recaptcha == 0.0.4