How to (successfully) switch between Python 3.6 64 and 32 bit on spyder (anaconda)

1,180 views
Skip to first unread message

Chentir MT

unread,
Jun 6, 2019, 12:55:49 PM6/6/19
to spyder

(I posted this question on stack overflow but I hope being more lucky here)


I am having hard time to effectively switch between 64bit Python and 32bit.


1- I followed steps described here (Using multiple Python engines (32Bit/64bit and 2.7/3.5))

2- I successfully got a 2nd channel Python 3.6 32bit on my Anaconda Navigator

3- When I start Spyder, it is still running on 64bit interpreter

4- I forced the interpreter to launch the 32bit from: "Tools-->Python Interpreter-->Use the following Interpreter" then I navigate to the 32bit python.exe file created by the 2nd channel

Yet it is still running on 64bit (I confirmed on spyder menu Help --> About Spyder... as well as by typing python in anaconda prompt)

I need the 32bit python to call some DLLs using ctypes. If I don't do that I get the following error message:

OSError: [WinError 193] %1 is not a valid Win32 application

I tried to load a different DLL (64bit) and I didn't have any issues

If using pythonnet (clr), I am getting this error message:

FileNotFoundException: Unable to find assembly

Note: this post (PythonNet FileNotFoundException: Unable to find assembly) reported similar issue using clr, but I can't find: Properties-->General-->Unblock

Thanks for your help

vikhyat kumeria

unread,
Jun 8, 2019, 9:57:04 AM6/8/19
to spyd...@googlegroups.com
Hi sir,
Thanks a lot for your help

--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+...@googlegroups.com.
To post to this group, send email to spyd...@googlegroups.com.
Visit this group at https://groups.google.com/group/spyderlib.
To view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/1e75b691-7322-4f48-ab10-4bb3c497278b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages