One minute
Setting up Python Virtual Environment
Setting up Python Virtual Environment
This is a note to myself on how to setup a Python virtual environment using Anaconda and IPython.
Steps:
- Install Miniconda: Conda cheatsheet
- Verify
conda
is installed runningconda -V
- Create new virtual environment (in this example, we are using python 3.9):
conda create --name py39 python=3.9
- Check that env shows in
conda env list
- To start the environment:
conda activate py39
- Install IPython:
pip install ipython
- Install any other libraries needed: ex.
pip install requests
,pip install python-ldap
- Start ipython:
ipython
- To exit ipython:
exit
- To leave virtual env:
conda deactivate
Read other posts