fbpx

Why I abandoned all Options to get Python running Visual Studio to integrate with DotNet CSharp or Visual C++

(Last Updated On: April 8, 2014)

Why I abandoned all Options to get Python running Visual Studio  to integrate with DotNet CSharp or Visual C++

We tried to get everything to work with Visual Studio 2012 Ultimate as instructed at:

http://pytools.codeplex.com/wikipage?title=PTVS%20Installation <- works fine but no simple examples to show calls from Visual C++ or C#

http://www.lfd.uci.edu/~gohlke/pythonlibs/#pip <– all of the Windows binaries run fine within Visual Studio it seems

I say ya right, I got the time to monkey around with these options:

http://stackoverflow.com/questions/11056424/running-python-from-visual-c-code-embedded-python

http://www.codeproject.com/Tips/587652/Cplusplus-Easier-to-Embed-Pytho <– too old and fragile

I am sure there are others but really why go on this Easter egg hunt?

https://docs.python.org/3.3/extending/windows.html

You are kidding me right with URL the above? WTF!

After trying to install pandas, I quickly abandonded this idea as it kept asking for other dependency packages like numpy and some date package. Wow what a mess. I guess you could say I quickly abandonded this idea as well. All I can say, you are left to your own devices trying to figure out how get either Visual C++ and C# to call a Python script. I am sure it can be done somehow without Iron Python but it seems I really don’t want to waste any more time on this rabbit hole. I really despise these paths as I wish someone could properly document a tutorial on how to do this. What a real  mess it is so we stick with Matlab Builder NE prior 2014 releases. It just seems this is the only slick way without using this Python or R nightmare situation. Again another fine mess of  open source not documented to get something quickly running.

P.S. I got close without these unresloved external errors during the linking but these links helped to get me closer with library setup within Visual Studio:

http://stackoverflow.com/questions/18043939/microsoft-visual-studios-2012-cant-open-python33-lib

http://stackoverflow.com/questions/17028576/using-python-3-3-in-c-python33-d-lib-not-found

Other useless URLS;

http://bytes.com/topic/python/answers/25807-how-call-python-function-visual-c

https://docs.python.org/2/extending/embedding.html

http://www.dreamincode.net/forums/topic/238102-python-in-visual-c/

Good god, do it the smart way ok? Follow us through our newsletter 

 

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!
Don't miss out!
Get my TRADE LIKE A BOSS 2 PDF Books

You will received instantly the download links.

Invalid email address
Give it a try. You can unsubscribe at any time.

NOTE!

Check NEW site on stock forex and ETF analysis and automation

Scroll to Top