Wednesday, December 2, 2020

python virtualenv

 https://www.dabapps.com/blog/introduction-to-pip-and-virtualenv-python/

create virtualenv for your project

$ cd ~/code/myproject/
$ virtualenv env
install python libraries using pip that came with your virtualenv
$ env/bin/pip install <library>
To run python do
$ env/bin/python ...

No comments:

Post a Comment

test

import os import argparse import json def load_json_file(filepath):     with open(filepath, 'r') as f:         return json.load(f) d...