I have just installed pyvisa on my mac with
$ pip install pyvisa
But when I was to test it using IDLE like this:
import visa
rm = visa.ResourceManager()
I got this:
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
rm = visa.ResourceManager()
File "/Users/siyuqi/Library/Python/2.7/lib/python/site-packages/pyvisa/highlevel.py", line 1488, in __new__
visa_library = open_visa_library(visa_library)
File "/Users/siyuqi/Library/Python/2.7/lib/python/site-packages/pyvisa/highlevel.py", line 1460, in open_visa_library
return cls(argument)
File "/Users/siyuqi/Library/Python/2.7/lib/python/site-packages/pyvisa/highlevel.py", line 96, in __new__
raise OSError('Could not open VISA library:\n' + '\n'.join(errs))
OSError: Could not open VISA library:
If I try 'pip install' in Terminal again, I will get the following result:
Requirement already satisfied (use --upgrade to upgrade): pyvisa in ./Library/Python/2.7/lib/python/site-packages
Requirement already satisfied (use --upgrade to upgrade): enum34 in ./Library/Python/2.7/lib/python/site-packages (from pyvisa)
Could anybody please kindly help me solve my problem? Thanks!