In the case of using “Anaconda” run the following command to deactivate the conda environment. Reference: https://docs.python.org/3/library/venv.html

How to quit exit deactivate a Python Virtualenv   TecAdmin - 38