How to specify pyversion 'library' path for 32 bit Python2.7 dll?

Hello,
I use a 64 bit Windows 7 machine, Matlab r2015b (32 bit), and I have Python 2.7 (32 bit) installed on my computer.
I am using an API written on top of Python's I2C Aardvark API. Some functions include aa_init, aa_i2c_read, aa_i2c_write, and aa_close.
It appears matlab will only look in the system32 folder (64 bit applications) for the python dll. This is the result of checking pyversion.
The API I need access to works in 64 bit Matlab, but I need it in 32 bit Matlab.
pyversion
version: '2.7'
executable: 'C:\Python27\pythonw.exe'
library: 'C:\Windows\system32\python27.dll'
home: 'C:\Python27'
isloaded: 1
In my opinion, this means pyversion is broken. I need to instruct matlab to look in sysWOW64 (32 bit applications) for the python dll.
pyversion only allows the user to specify the folder containing the Python .exe - It appears Matlab is programmed to only search for 64 bit Python dll. This is a big problem for me.
Can I specify the 'library' to get the python27 dll? I've spent hours searching and cannot find a way to achieve this.
Thanks for any help, Miles

Respuestas (0)

Categorías

Preguntada:

el 7 de Jul. de 2017

Editada:

el 10 de Jul. de 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by