Showing posts with label Python. Show all posts
Showing posts with label Python. Show all posts

Thursday, 8 November 2018

Compile Python File

python -m compileall <file_1>.py <file_n>.py

The compiled “.pyc” file will be available with suffixed name
Copy the file in the parent folder.
Rename it as required with “.pyc” extension

Run the file as usual with python command

Install Python in a Desktop PC

Prepare a Desktop PC
  • Identify a Desktop PC (Intel I5, 4GB RAM)
  • ping the system having MS ACCESS Time Entry Device database in LAN
  • ping the ERPNext server (eg:ermass.com.sa)
Download & Install Python
Set Environment Variables
  • Set “PY_HOME” System Environment Variables as “D:\Python” in Control Panel

  • Edit “path” System Environment Variables in Control Panel and add following lines:








Install Packages
  • Go to D:\Python\Scripts folder
  • Run pip install pyodbc
  • Run pip install json
  • Run pip install requests
  • Run pip install pathlib