采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
老师打扰了,按照操作结果出现这个问题,找不到解决方案,你能告诉下你使用的各个版本号吗?,给我个参考``
因为cookiecutter-django这个仓库不给git clone权限了,很奇怪只有部分地区可以。
改用 cookiecutter https://github.com/pydanny/cookiecutter-django.git 吧
先把cookiecutter安装在python3的环境,然后软链接一下
$ yum install git # 现在系统上安装git$ pip3 install --ignore-installed requests # 更新requests包$ pip3 install cookiecutter$ ln -s /usr/local/python3/bin/cookiecutter /usr/bin/cookiecutter # 创建软链接,/usr/local/python3/是Python3的安装路径
$ yum install git # 现在系统上安装git
$ pip3 install --ignore-installed requests # 更新requests包
$ pip3 install cookiecutter
$ ln -s /usr/local/python3/bin/cookiecutter /usr/bin/cookiecutter
# 创建软链接,/usr/local/python3/是Python3的安装路径
要是也不行的话,看看是否有克隆权限
git clone https://github.com/pydanny/cookiecutter-django.git
更新一下requests和urllib3包试试 pip3 install requests urllib3 --upgrade
再不行改用https试下 cookiecutter https://github.com/pydanny/cookiecutter-django.git
我版本是
cookiecutter 1.6.0requests 2.21.0requests-oauthlib 1.2.0urllib3 1.24.1# Django相关开发包Django 2.1.7django-allauth 0.39.1django-appconf 1.0.3django-compressor 2.2django-contrib-comments 1.9.1django-coverage-plugin 1.6.0django-crispy-forms 1.7.2django-debug-toolbar 1.11django-environ 0.4.5django-extensions 2.1.6django-haystack 2.8.1django-markdownx 2.0.28django-redis 4.10.0django-taggit 1.1.0
cookiecutter 1.6.0
requests 2.21.0
requests-oauthlib 1.2.0
urllib3 1.24.1
# Django相关开发包
Django 2.1.7
django-allauth 0.39.1
django-appconf 1.0.3
django-compressor 2.2
django-contrib-comments 1.9.1
django-coverage-plugin 1.6.0
django-crispy-forms 1.7.2
django-debug-toolbar 1.11
django-environ 0.4.5
django-extensions 2.1.6
django-haystack 2.8.1
django-markdownx 2.0.28
django-redis 4.10.0
django-taggit 1.1.0
还有同学遇到了相同的问题 :http://coding.imooc.com/learn/questiondetail/117376.html
登录后可查看更多问答,登录/注册
融合Django高级用法/算法/设计模式/TestCase测试/云计算打造项目
2.5k 15
7.6k 1
2.3k 6
1.6k 4
1.8k 2