![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
排错
「已注销」
某大厂程序员
热爱电影
Fake it till make it && We are who we are.
展开
-
Python3.7报错:runtimeerror: generator raised StopIteration
切换环境为Python3.6重新安装Django即可解决. Python3.7已经是稳定版本了, 但是不知道为什么会报出这个错误. 网上找到了相关的提示:https://github.com/pypa/setuptools/issues/1285 一个人指出是Python3.7版本的原因. 于是我尝试了切换环境,换成了Python3.6,但是由于没有重开terminal,导致还是报错.(这...原创 2018-07-11 00:12:08 · 9763 阅读 · 0 评论 -
AttributeError: 'module' has no attribute 'get_installed_distributions'
解决办法: pip install pip==9.0.1 pip 10中没有get_installed_distributions这个方法,所以需要降级之后使用该方法原创 2018-07-11 11:45:28 · 1958 阅读 · 2 评论 -
zip在Django中使用: TemplateSyntaxError处理
修改view层: mylist = zip(list1, list2) return render_to_response('template.html', {'mylist': mylist}) template层: {% for ab in mylist %} {{a.0}} {{b.1}} {% endfor %}原创 2018-07-12 14:56:18 · 358 阅读 · 0 评论 -
Github “fatal: remote origin already exists”
修改本地仓库对应的远程仓库链接: git remote set-url origin git@github.com:username/repository_name.git 把username替换成自己的GitHub用户名, repository_name替换成远程仓库名即可....原创 2018-07-31 14:12:32 · 147 阅读 · 0 评论