I'm following the instruction on this page https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019Pf1SAE&l=pt-BR to read signals with a NI USB 4432.
I installed the NI DAQmx python API with
$ python -m pip install nidaqmx
If I try it again, it returns:
But if I try, on the Python IDLE SHELL, to import nidaqmx with
>>> import nidaqmx
I receive the this error message:
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
ModuleNotFoundError: No module named 'nidaqmx'
In Spyder, it works normally, but I need to use it with the Python IDLE.
My Python version is 3.9.2.
Could someone help me? What should I do to NI DAQmx works with Python IDLE?
Solved! Go to Solution.
Looks like nidaqmx package was installed in your Anaconda environment and not in your IDLE environment.
Please change your PATH variable to point to the Python IDLE folder instead of anaconda.