Python Environments Setup.

This code example demonstrates Bash programming techniques and best practices.

#PYTHON  - Windows
python -m venv env
env\Scripts\activate or env\Scripts\activate.bat
cd YOUR_PROJECT
pip install -r requirements.txt 


#Unix
$ python -m venv mysite/env
$ source mysite/env/bin/activate

Language: Bash
Original Source: BlogEngine.NET Migration
Code Lines: 25




requirements file sample format:requirements.txt




#Use the environment in Jupyter notebook
#after creating your environment, go into the environment. 

 

 

Python Environments Setup.

#PYTHON python -m venv env env\Scripts\activate cd YOUR_PROJECT pip install -r requirements.txt re