Virtual Environment error

98 views
Skip to first unread message

yasar arafath Kajamydeen

unread,
Sep 24, 2019, 11:13:26 PM9/24/19
to Django users
Dear All,

Actually i forget my virtual environment name. So when i run  --  python manage.py  runserver   command     its showing   error like this  .


ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?




Thanks in Advance.


Regards,
Yasar Arafath K

Deep Sukhwani

unread,
Sep 25, 2019, 2:31:20 AM9/25/19
to django...@googlegroups.com
Depending on how you installed virtualenv package and what you are using to create and activate virtualenv you can determine the currently present virtualenvs on your computer.

  • If you used virtualenvwrapper - use lsvirtualenv
  • Additionally, you can look in your Home Directory and search for a directory named .virtualenvs (Note there's a dot before virtualenvs) to see the list of all present virtualenvs
  • Finally, you can always just go ahead and create a new one - shouldn't take too much time
--
Regards
Deep L Sukhwani


--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/198d3480-4f3b-4cf3-971d-ce6c7ec19080%40googlegroups.com.

fclinux nova

unread,
Sep 25, 2019, 6:50:30 AM9/25/19
to django...@googlegroups.com
The simple way is creating new virtualenv and reinstall the package and recorgine them in requirements.txt for next installation. This is very basic and checking google is better than mail in this group. Thanks

Tosin Ayoola

unread,
Sep 25, 2019, 7:17:59 AM9/25/19
to django...@googlegroups.com
CD  into the directory in which u created ur virtualenv the  type source ➕ tab key twice it should give you the list of all the virtual environment u have created in that directory 

--
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+unsubscribe@googlegroups.com.

laya Mahmoudi

unread,
Sep 25, 2019, 7:28:46 AM9/25/19
to django...@googlegroups.com
You os is linux pr windows?

در تاریخ چهارشنبه ۲۵ سپتامبر ۲۰۱۹،‏ ۶:۴۴ yasar arafath Kajamydeen <yasa...@gmail.com> نوشت:
--
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.
Reply all
Reply to author
Forward
0 new messages