2👍
I assume you’re using virtualenv
. If so, do you know where it put the bin directory? If so, run source bin/activate
. After that, when you try runserver, it should use the correct Python instance.
More complete:
source /path/to/bin/activate
But I typically run source bin/activate
from the directory that contains the related bin
.
0👍
I found pew to be a very handy tool for managing your virtualenvs. Once its installed, basically, you can just do pew new env_name
then pew workon env_name
to activate an environment.
One of my colleagues use it on Mac OS X without issues.
- [Answered ]-Django unused method arguments
- [Answered ]-Sys.path.append, how to resolve name collisions when you cannot modify modules
- [Answered ]-Environment can only contain strings- wagtail CMS, Django
- [Answered ]-'views' is not defined in Django 1.10
- [Answered ]-Make All hashtags clickable in Template with Templatetags
Source:stackexchange.com