Visual Studio IronPython Application does not import packages RRS feed

  • Question

  • Hello,

    Not sure this is the right forum. If not please direct me to the right one.

    I am trying to build WPF IronPython Application using Visual Studio. This is my initial code - most of it automatically generated by Visual Studio (See also figure 1):

    import wpf
    from System import Run
    from System.Windows import Application, Window
    import pandas 

    class MyWindow(Window):
        def __init__(self):
            wpf.LoadComponent(self, 'WpfApplication2.xaml')

    if __name__ == '__main__':


    The problem is with the "import pandas" statement which Visual Studio does not recognize and does not compile.

    This is despite the fact that Anaconda 5.0.1 is installed and is part of the Python Environments as the figure shows.

    You can see in figure 2 the "Python Environments" window. The pandas package is recognized and was compiled for InteliSense.  

    Also I added various paths for the "pandas" package location into the search path as you can see in figure 3.

    I also tried some Voodoo solution I found in various forum of the type of uninstall and then re-install the packages from all kind of places.

    Yet I can not get the code to compile - the "import pandas" statement refuses to compile :-(

    I am feeling kind of stuck here and would appreciate your assistance.



    Monday, November 6, 2017 9:02 PM

All replies

  • Hi Eric_365,

    Welcome to MSDN forum.

    This forum is about the Visual Studio Integrate (Discuss and ask questions about extending and integrating with Visual Studio (using the Extension Manager, building VSX containers for deployment, Visual Studio SDK, and more), as your issue is more related to the Python tools for Visual Studio. And MSDN does not have forum about this temporarily. So I suggest you can ask this question on stackoverflow with ironpython and Visual Studio tags, or you can submit this issue on the GitHub.

    Thanks for your understanding and cooperation.

    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, November 7, 2017 9:29 AM