太阳集团6138(CHINA)澳门企业-环球百科 /en/tsmaster-small-features-how-to-import-external-libraries-for-python-applets/ /en/tsmaster-small-features-how-to-import-external-libraries-for-python-applets/#respond Wed, 23 Aug 2023 08:56:48 +0000 /?p=4858 overview Preface Today we introduce you to the TSMaster feature of how to import external libraries for Python applets. By using the TSMas [...] ...

The post TSMaster Small Features - How to import external libraries for Python applets? first appeared on Shanghai TOSUN Technology Ltd..

]]>
overviewPreface

Today we are going to introduce how to import external libraries in TSMaster feature of Python applet. It is introduced by importing external libraries under the default parser path of TSMaster so that we can go to use Python external libraries.Installing external libraries under TSMaster's default Python parser.

01 Step 1

Select Open Parser Path in TSMaster Tools->System Information->python Environment Settings;

TSMaster small function - Python applet import external libraries

02 Step 2

Type cmd in this file path to open the command line;

TSMaster small function - Python applet import external libraries
TSMaster small function - Python applet import external libraries

03 Step 3

In this path, use the command Python -m pip install to install external libraries. We install the pandas library and the openpyxl library to test writing text to excel;

TSMaster small function - Python applet import external libraries

04 Step 4

Tested using the keystroke events of the Python applet in TSMaster, using the pandas library to write a piece of data to excel.

TSMaster small function - Python applet import external libraries
TSMaster small function - Python applet import external libraries

05 Step 5

After running the program, press A to launch the key event, and then open the excel file under the path "C:\Users\yujia\Desktop\test.xlsx" to observe that the data has been successfully written.

TSMaster small function - Python applet import external libraries

If you need demos or ask other technical questions, you can leave a message on the official website. 

For inquiries, e-mail: sales@tosunai.cn

Service Hotline: 021-59560506

The latest version of TSMaster software is available for free download at: http://www.tosun.tech/TOSUNSoftware/TSMaster_Setup_beta.exe

The post TSMaster Small Features - How to import external libraries for Python applets? first appeared on Shanghai TOSUN Technology Ltd..

]]>
/en/tsmaster-small-features-how-to-import-external-libraries-for-python-applets/feed/ 0