1python3 -m venv env
2python -m virtualenv env #py2
3
4source env/bin/activate
5
6#all this is on same directory
7
1# windows
2python -m venv <venv-name>
3# To activate
4#C:\Users\..\<venv-name>
5.\Scripts\activate.bat
1# Create the virtual environment.
2python -m venv venv
3
4# Activate the env.
5venv\Scripts\activate.bat
1pip install virtualenv # install first
2cd projectfolder # go to project folder
3python -m venv ./venv # Create a virtual environment named venv
4Activate.ps1 # (powershell) start the file to start the environment
5activate.bat # (cmd) start the file to start the environment
6# if it worked you'll see a (venv) in front of your cursor path
1# Comand Prompt
2C:\Users\user>d:
3D:\>cd my\project\folder
4D:\my\project\folder>conda.bat activate d:\my\project\folder\envs\env_1
5(env_1) D:\my\project\folder>
6# Anaconda Powershell Prompt
7(base) PS C:\Users\user>d:
8(base) PS D:\> cd .\my\project\folder\
9(base) PS D:\my\project\folder> conda activate d:\my\project\folder\envs\env_1
10(env_1) PS D:\my\project\folder>