ERPNext Knowledgebase
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
Download Python 32 bit for windows using the following link in the above PC
https://www.python.org/ftp/python/3.7.0/python-3.7.0.exe
Click the above downloaded executable and Install Python at "D:\Python" folder
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
Home
Subscribe to:
Posts (Atom)