PyVISA和PyMeasure的问题如何解决?

2024-09-29 07:33:05 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用Python 3.8。使用pip安装PyMeasure,并在我的文件中输入以下单行并执行它:

from pymeasure.instruments.keithley import Keithley2400

我从Python获得了以下输出:

*Warning (from warnings module):
  File "C:\...\AppData\Local\Programs\Python\Python38\lib\site-packages\visa.py", line 13
    warnings.warn(
FutureWarning: The visa module provided by PyVISA is being deprecated. You can replace `import visa` by `import pyvisa as visa` to achieve the same effect.
The reason for the deprecation is the possible conflict with the visa package provided by the https://github.com/visa-sdk/visa-python which can result in hard to debug situations.*

这里的问题是什么?我如何解决它以能够编码


Tags: pip文件thetofromimportbyis