Installation issue

10 views
Skip to first unread message

Dhruv Mahajan

unread,
Jun 19, 2018, 2:37:12 PM6/19/18
to Django users
Hi

I just started working on Django. I am unable to get django-admin command to work properly. Initially I was getting an error that django-admin could not be located. I created a symlink for the same in the /use/local/bin folder. Now I am getting the following error:
File "/usr/local/bin/django-admin", line 2, in <module>
  from django.core import management
ImportError: No module named django.core

My setup is as follows:
I am running ubuntu 18.04 on a virtualbox on a Macbook Pro. I have installed virtualenv using apt get. I am using python 3.6.5 and Django 2.0.6. I have installed django using pip3. It has been installed in the folder ~/.local/lib/python3.6/site-packages/. Symlink for django-admin.py was created in /usr/local/bin/

Kindly help me here. 

MTS BOUR

unread,
Jun 19, 2018, 3:00:05 PM6/19/18
to django...@googlegroups.com
Hello 

Make sure you can import django from python shell

And check the python version you are using with you python files 
You can use the full path to python 
But that is not fun to do everytime

For more check here

https://stackoverflow.com/questions/312549/no-module-named-django-core

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9bee777f-7550-4d25-8c03-3702e3b83bab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9bee777f-7550-4d25-8c03-3702e3b83bab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages