Why do I get “ImportError: cannot import name find_spec” when I start a new Django project?

痴心易碎 提交于 2019-12-04 22:24:43
KarthiG

find_spec isn't available in Python 3.2.3; it was added in Python 3.4.

Try upgrading to 3.4 or later.

The version of Django you're using (v1.9.1) cannot be used with Python 3.2. Hence, @KarthiG and @MUNGAI NJOROGE are correct, and now you know why.

What Python version can I use with Django?

I got the same problem with docker containers.

find_spec is not available when using Docker containers and django 1.9 and python:3.3 dependency. Adding the line below in your docker image as a dependency works. FROM python:3.4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!