These steps should be performed from a command prompt.
virtualenvwrapper
does not play well with powershell.
Be forewarned.
-
Install python 3.6 and virtualenvwrapper-win
choco install -y python3 c:\python36\python.exe --version # ensure 3.6.3 or higher c:\python36\scripts\pip.exe install virtualenvwrapper-win
-
Create your virtual environment & install requirements
cd c:\path\to\djenga mkvirtualenv djenga workon djenga pip install -r requirements.txt
-
Setup pycharm for debugging by pointing your project interpreter to
c:\users\username\envs\djenga\scripts\python3.6.exe
. Create a run configuration for celery by addingmanage.py
as the script file,c:\path\to\djenga
as the working directory, andcelery
as parameters. You'll also need to add an env variable for celery to work correctly:FORKED_BY_MULTIPROCESSING=1