[Fixed]-Using Windows to run a virtual environment Created on Ubuntu

1👍

Assuming that you have created a virtualenv on ubuntu without relocatable option. You will have to firstly create a new virtual environment on Windows because they have differences on OS variations. So navigate to the directory where you would like to create the new virtual environment on Windows and run the following command:-
virtualenv .
(Note the . specifies current directory option)
After this there will be three directories created in your directory namely
1) Include
2) Lib
3) Scripts

As now the activate.bat file is in Scripts you can activate your virtualenv by the following command:
Scripts\activate

After the environment is activated you can pip install -r requirements.txt and then run your manage.py script as usual.

For further reference you can read:-
https://virtualenv.pypa.io/en/stable/userguide/

Leave a comment