Search code examples
pythontensorflowvisual-studio-2017cntk

VS 2017 Preview Python Package Import Issues


I have an custom conda environment set up in VS2017 Preview for some ML packages I want to run against each other in a single env (CNTK, Tensorflow, ... ect). When importing the modules from a Interactive Window in VS there is no problem, but when I try to attach a debugger and run I seem to get import errors. Is there some custom search path I need to add or some command to "activate" the conda env within my script aside from setting it as the active environment in my solution?

[Loading While Attached to Debugger]2

enter image description here Edit: Figured out my issue, I had to set the solution working directory to the location of my virtual env, oops ><, anyway that seems to clear up import errors


Solution

  • Figured out my issue, I had to set the solution working directory to the location of my virtual env, oops ><, anyway that seems to clear up import errors