

demo_environment/bin/activate Activate virtual environment demo_environment Create Virtual EnvironmentĪfter completing above step now we want to activate the Python virtual environment to activate pass command:Ĭommand Syntax $ source. Now we will setup or create Python Virtual environment in the current project directory using the below command:Ĭommand Syntax $ virtualenv. Go to created folder directory selenium_firefox using cd command. So whatever module you import for this current project will save on current project directory not on globally.Īfter virtualenv download you need to create project directory at any location.To create directory use $ mkdir -p selenium_firefox/drivers $ sudo pip3 install virtualenv Install virtualenvĪ benefit of installing virtualenv will create isolated python3 environment, which will ensure that you don’t wreck your old programs. Step 1: Create Python3 Virtual Environmentįirst of all we install virtualenv using pip3 command type the following command in terminal. Now we will start the installation process.

Python3 installed on your Ubuntu/Debian rig.Before this, make sure that you have installed the following Package.

We will use a python program to automate tests.
