-
Command to install virtualenv:
pip install virtualenv
-
Steps to create a new virtual environment:
For Windows
git clone https://github.com/sushilnayak/python-template-for-sagemaker-calc.git cd python-template-for-sagemaker-calc virtualenv venv -p c:\ProgramData\Anaconda3\python.exe "venv\Scripts\activate.bat"
For Linux/Ubuntu
git clone https://github.com/sushilnayak/python-template-for-sagemaker-calc.git cd python-template-for-sagemaker-calc which python virtualenv venv -p /usr/bin/python source venv/bin/activate
-
Save download packages information into requirements.txt file :
pip freeze > requirements.txt
-
To install the packages from requirements.txt :
pip install -r requirements.txt
-
exit virtual environment:
For Windows
"venv\Scripts\deactivate.bat"
For Linux\Ubuntu
deactivate
sushilnayak / python-template-for-sagemaker-calc Goto Github PK
View Code? Open in Web Editor NEWjust an experiment