A union of curiosity and data science

Knowledgebase and brain dump of a database engineer


Python Environments Setup.

#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



requirements file sample format:requirements.txt
boto==2.49.0
boto3==1.9.74
botocore==1.12.74
click==6.7
docutils==0.14
dominate==2.3.1
Flask==0.12.2
Flask-Bootstrap==3.3.7.1
Flask-Login==0.4.1
Flask-Migrate==2.3.1
Flask-SQLAlchemy==2.3.2
Flask-WTF==0.14.2
itsdangerous==0.24
Jinja2==2.10
jmespath==0.9.3
Mako==1.0.7
MarkupSafe==1.0
psycopg2==2.7.6.1
psycopg2-binary==2.7.6.1


#ANACONDA
conda create -n <environment name>
conda activate <environment name>
conda install pip
pip install -r requirements.txt


#Use the environment in Jupyter notebook
#after creating your environment, go into the environment. 
ipython kernel install --user --name=pyflake

 

 

Add comment