简体   繁体   English

制作exe文件后Windows 7 x64与PyVisa的问题

[英]Windows 7 x64 issue with PyVisa after making exe-file

I create a little GUI interface to work with Keysight stuff. 我创建了一个小的GUI界面来使用是德科技的东西。

I use Python 3.6.4, PyVisa 1.8 (both x64), setuptools 19.2 我使用的是Python 3.6.4,PyVisa 1.8(均为x64),setuptools 19.2

When i create exe-file by PyInstaller it's all builded whithout any errors. 当我通过PyInstaller创建exe文件时,所有文件均已构建,没有任何错误。

And when a run application it's all good. 当运行应用程序时,一切都很好。

But when i run it into another machine (win7x64, without python, pyvisa, etc... stuff) it's doesn't work by OSError: Could not open VISA library 但是,当我将其运行到另一台机器上(win7x64,没有python,pyvisa等)时,OSError无法正常运行:无法打开VISA库

在此处输入图片说明

在此处输入图片说明

How can i packed up my application and pyvisa stuff into one piece? 我如何将我的应用程序和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')
...

PyVisa wraps the NI Visa library, but that library must be installed separately because it is an NI product. PyVisa包装了NI Visa库,但是该库必须是单独安装的,因为它是NI产品。 PyInstaller has no way of bundling this because Pyvisa does not bundle it. PyInstaller无法捆绑此文件,因为Pyvisa不会捆绑它。

That said, I expect that if you install NI Visa library on your target PC, your software will work. 就是说,我希望如果您在目标PC上安装了NI Visa库,您的软件将可以运行。 You'll need to advise users that NI Visa is a dependency they'll need to install themselves. 您需要告知用户NI Visa是他们自己安装所需的依赖项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在x64机器上制作x86 .exe - Making a x86 .exe on a x64 machine Python Win 3.6.0 x64问题,在pip3安装pyqt5之后缺少qt designer exe - Python Win 3.6.0 x64 issue, missing qt designer exe after pip3 install pyqt5 为什么Python 3 Windows AMD64 / EM64T / x64安装程序是“ .amd64”文件? - Why is the Python 3 Windows AMD64/EM64T/x64 installer a “.amd64” file? 如何设置 Atom 的脚本来运行 Python 3.x 脚本? 与 Windows 7 Pro x64 的组合可能是问题吗? - How to setup Atom's script to run Python 3.x scripts? May the combination with Windows 7 Pro x64 be the issue? 在Windows x64上将numpy.int64数据类型解释为Python中的本机int数据类型 - Interpreting numpy.int64 datatype as native int datatype in Python on windows x64 Windows x64 vs x86:硬件 vs. 操作系统 vs. 进程 - Windows x64 vs x86: Hardware vs. OS vs. process 无法在Windows 10 x64计算机上使用Anaconda3 ver 4.3.1“ conda安装'anything'” - unable to “conda install 'anything' ” with Anaconda3 ver 4.3.1 on Windows 10 x64 computer 如何在Python 3.3 Windows 7 x64上安装Pyramid - How do I install Pyramid on Python 3.3 Windows 7 x64 由pyinstaller创建的exe文件,在运行时找不到自定义模块 - exe-file created by pyinstaller, not find self-defined modules while running tkroot.tk.call() 在制作 exe 文件后引发错误 - tkroot.tk.call() raises an error after making the exe file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM