Scaffold your Python project in five minutes with this guideline.
- Python 3+
- Pip3+
Ensure they are installed
$ python3 -m pip install --user virtualenv$ mkdir myproject && cd myproject$ python3 -m venv env$ source env/bin/activate$ which pythonThe result should point to your virtual env path.
$ pip3 install [package name] # e.g., pip3 install fxcmpy python-socketio This is uselful whenever you want to run your project in a new system/environment.
$ pip3 freeze > requirements.txtRun this when you want to run the project in a new system.
$ pip3 install -r requirements.txtFinally to leave the virtualenv just type deactivate.