简体   繁体   中英

ImportError: No module named django.core even I getting when I am importing django in python console

I had recently updated my Django version from 1.11 to 3.0 . when I want to create a project using python-admin startproject mysite I am getting error as

ImportError: No module named django.core

I tried importing the Django in python3 console it is working.

Try using django-admin instead of python-admin. I made a new virtual environment, downloaded django via pip and django-admin startproject myapp worked. Don't forget to activate the virtual environment

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM