Unable to setup Django

40 views
Skip to first unread message

Nav Pat

unread,
Dec 8, 2017, 7:36:29 PM12/8/17
to Django users
So Im trying to activate virtual environment but its not happening.

I type "venv\Scripts\activate" into my powershell and out comes :


"venv\Scripts\activate : The module 'venv' could not be loaded. For more information,
run 'Import-Module venv'.
At line:1 char:1
+ venv\Scripts\activate
+ ~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (venv\Scripts\activate:String) [], Comma
   ndNotFoundException
    + FullyQualifiedErrorId : CouldNotAutoLoadModule"



Any help would be greatly appreciated

Mike Dewhirst

unread,
Dec 8, 2017, 10:04:49 PM12/8/17
to django...@googlegroups.com
Power shell is unnecessary. I'm not sure but I think it gives you privileges you don't want while developing.

Anyway, find where activate.bat is and cd to the dir above the Scripts dir and enter ...
$>scripts\activate
And cross your fingers :)

Connected by Motorola
--
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/30eb3658-d4ba-450f-b7dc-e876a7377156%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages