我创建了一个小 GUI 界面来使用 Keysight 的东西。
我使用 Python 3.6.4、PyVisa 1.8(均为 x64)、setuptools 19.2
当我通过 PyInstaller 创建 exe 文件时,它都是构建的,没有任何错误。
当运行应用程序时,一切都很好。
但是当我将它运行到另一台机器上时(win7x64,没有 python、pyvisa 等...
我怎样才能将我的应用程序和 pyvisa 的东西打包成一个整体?
""" Main body """
import sys, time, visa, interface
from PyQt5 import QtCore, QtWidgets, QtGui
RM = visa.ResourceManager("C:/Windows/System32/visa32.dll")
#RM = visa.ResourceManager()
KEYSIGHT = RM.open_resource('TCPIP0::10.11.0.200::inst0::INSTR')
...