Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
安装django recaptcha_Django_Captcha_Recaptcha_Django Recaptcha - Fatal编程技术网

安装django recaptcha

安装django recaptcha,django,captcha,recaptcha,django-recaptcha,Django,Captcha,Recaptcha,Django Recaptcha,我正在尝试安装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 setup

我正在尝试安装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中添加了“captcha”,但它给了我以下错误:

Error: No module named captcha

在这方面需要一些帮助……

尝试以sudo用户身份安装,因为它清楚地显示“权限被拒绝”


sudo pip install django recaptcha==0.0.4

尝试以sudo用户身份安装,因为它清楚地表明“权限被拒绝”


sudo pip install django-recaptcha==0.0.4

尝试
pip-freeze>requirement.txt
并查看该文件的
django-recaptcha==0.0.4
尝试pip install-django==1.4时,它说需求已经满足其已安装的外观,现在尝试将其添加到您的设置中,作为已安装应用程序中键入的“captcha”。。。错误:没有名为captchai的模块尝试了所有操作,但我仍然看到以下错误
ModuleNotFoundError:没有名为“captcha”的模块
。我在settings.py文件中安装了以下
应用程序=['captcha',…]
。我使用
install django-recaptcha==0.0.4
安装了验证码,还尝试了
pip-install-django-simple-captcha
不走运!尝试
pip-freeze>requirement.txt
并查看该文件的
django-recaptcha==0.0.4
当尝试pip-install-django==1.4时,它说需求已经满足其已安装的外观,现在尝试将其作为应用程序添加到您的设置中,并在已安装的应用程序中的“captcha”中键入此内容。。。错误:没有名为captchai的模块尝试了所有操作,但我仍然看到以下错误
ModuleNotFoundError:没有名为“captcha”的模块
。我在settings.py文件中安装了以下
应用程序=['captcha',…]
。我使用
install django-recaptcha==0.0.4
安装了验证码,还尝试了
pip-install-django-simple-captcha
不走运!