Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 632 Bytes

Instructions Venv+requirement+ pytoexe.md

File metadata and controls

26 lines (15 loc) · 632 Bytes
  1. Make venv python

    FOR LINUX/MAC

  • installing venv sudo apt-get install python3.6-venv

  • creating virtual env python3 -m venv env

  • activating virtual env source env/bin/activate

    FOR WINDOWS

  • installing venv py -m pip install --user virtualenv

  • creating virtual env py -m venv env

  • activating virtual env .\env\Scripts\activate

  1. Automatically create requirements.txt

  • For Unix families: pip3 freeze > requirements.txt
  • Windos: pip freeze > requirements.txt
  1. Py to exe

  • pyinstaller --onefile -w filename.py