python -m venv yourenv
(Or)
virtualenv -p <paste_python_3.7_path_location> yourenv
- In Command Prompt (CMD):
yourenv\Scripts\activate.bat
- In PowerShell:
yourenv\Scripts\Activate.ps1
- In Linux:
$ source mlopsenv/Scripts/activate
pip install ipykernel
ipython kernel install --user --name=yourenv
pip3 freeze > requirements.txt # Python3
pip freeze > requirements.txt # Python2
jupyter-kernelspec uninstall yourenv
