python 3.x - Why do I get "ImportError: cannot import name find_spec" when I start a new Django project? -


i'm learning python in tandem django. installed python 3 on machine (debian wheezy), read possible conflicts , removed difficulty.

now i'm using virtualenv , installed python3 within env , django using pip. django , python seem have installed correctly:

# python -c "import django;  print(django.get_version())" 1.9.1 # python -v python 3.2.3` 

but when try start new django project, following:

# django-admin.py startproject mysite traceback (most recent call last):   file "/home/rialaado/projects/webenv/bin/django-admin.py", line 2, in <module>     django.core import management   file "/home/rialaado/projects/webenv/lib/python3.2/site-packages/django/core/management/__init__.py", line 10, in <module>     django.apps import apps   file "/home/rialaado/projects/webenv/lib/python3.2/site-packages/django/apps/__init__.py", line 1, in <module>     .config import appconfig   file "/home/rialaado/projects/webenv/lib/python3.2/site-packages/django/apps/config.py", line 6, in <module>     django.utils.module_loading import module_has_submodule   file "/home/rialaado/projects/webenv/lib/python3.2/site-packages/django/utils/module_loading.py", line 67, in <module>     importlib.util import find_spec importlib_find importerror: cannot import name find_spec 

a quick google turned no results me.

what should do?

find_spec isn't available in python 3.2.3; added in python 3.4.

try upgrading 3.4 or later.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -