TSMaster small function - Python applet import external library cover

TSMaster Small Features - How to import external libraries for Python applets?

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

发表回复

en_USEnglish
×
×

产品入口: 产品添加到购物车

Download location

Please click the download button below to start experiencing the powerful TSMaster features. Thank you for your support!

Beta version updated weekly, full version updated monthly
Installation environment
  • 1
    Windows 7 SP1 or higher, supports Win10, and WIn11.

    Operating System

  • 2
    8GB

    random access memory (RAM)

  • 3
    At least 550MB of free space

    disk space

  • 4
    Dual-core (2-core) or higher

    CPU

Please ensure that your computer meets at least these requirements in order to install and run the TSMaster software successfully. If your computer does not meet these requirements, it may cause performance problems or not run the software properly. You may want to consider upgrading your hardware if you need smoother running features.
XML 地图