I followed Setup CNTK on Windows, and confirmed that I can run CTNK from my local command prompt.
C:\local\Anaconda3-4.1.1-Windows-x86_64\envs\cntk-py34>.\Scripts\activate.bat
(root) C:\local\Anaconda3-4.1.1-Windows-x86_64\envs\cntk-py34>set PATH=C:\local\CNTK-2-0-beta3-0-Windows-64bit-CPU-Only\cntk\cntk;%PATH%
(root) C:\local\Anaconda3-4.1.1-Windows-x86_64\envs\cntk-py34>python -i
Python 3.4.4 |Continuum Analytics, Inc.| (default, Jun 15 2016, 15:25:08) [MSC v.1600 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from cntk import Trainer
>>>
I want to use Python Tools Visual Studio, so I tried to add this virtualenv to a new Python project by "Add Existing Virtual Environment...", but I got this following error.
Adding another existing virtualenv worked fine. I appreciate your help.
Right-click Python Environments in Solution Explorer and select Add Environment. In the Browse dialog that appears, navigate to and select the folder that contains the virtual environment, and select OK. If Visual Studio detects a requirements. txt file in that environment, it asks whether to install those packages.
Using the Create Environment command From within VS Code, you can create non-global environments, using virtual environments or Anaconda, by opening the Command Palette (Ctrl+Shift+P), start typing the Python: Create Environment command to search, and then select the command.
Here the steps that I use for existing conda env from Visual Studio:
Step (4) is crucial, or Visual Studio won't find CNTK dependency DLLs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With