To create a Python virtual environment with venv, use the following commands.
$ python3 -m venv venv
This command creates a virtual environment. Note that you can also use Anaconda Environments instead.
Activate it by running the activate file.
$ . venv/bin/activate
To deactivate the environment, use deactivate
.
$ deactivate
SEO Strategist at Tripadvisor, ex- Seek (Melbourne, Australia). Specialized in technical SEO. Writer in Python, Information Retrieval, SEO and machine learning. Guest author at SearchEngineJournal, SearchEngineLand and OnCrawl.