{"id":2257,"date":"2018-05-15T19:24:37","date_gmt":"2018-05-16T00:24:37","guid":{"rendered":"https:\/\/www.wiredprairie.us\/blog\/?p=2257"},"modified":"2018-05-15T19:24:37","modified_gmt":"2018-05-16T00:24:37","slug":"visual-studio-2017-anaconda-prompt-fix","status":"publish","type":"post","link":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/2257","title":{"rendered":"Visual Studio 2017 Anaconda Prompt Fix"},"content":{"rendered":"

For some reason, if you install the Python Tools for Visual Studio 2017, you’ll end up with an Anaconda command prompt that won’t work. It apparently is due to a path length limitation where the total target path exceeds some ridiculously small number in Windows for a shortcut.<\/p>\n

\"\"<\/a><\/p>\n

Thankfully, the fix isn’t painful — it’s just frustrating that it needs to be done.<\/p>\n

I’ve seen suggestions to use the old-school DOS 8.3 file paths, but I prefer to use something that still reads well and maps to other dev command line tools on my workstation.<\/p>\n

I created a directory junction in an existing folder C:\\Dev:<\/strong><\/p>\n

mklink \/d c:\\Dev\\Anaconda3_64 \"c:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Anaconda3_64\"<\/pre>\n

Specifically, I created:<\/p>\n

C:\\Dev\\Anaconda3_64<\/pre>\n

which is a junction to:<\/p>\n

c:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Anaconda3_64<\/pre>\n

You can use any junction directory you want, but remember that it can’t be too long, or you’ll have the same problem with a different name\/path. :) When using mklink<\/strong>, be sure to quote the path for the Anaconda install in the Visual Studio directory as shown above in the mklink example.<\/p>\n

Next, I updated the command prompt with the new path:<\/p>\n

c:\\Dev\\Anaconda3_64\\pythonw.exe C:\\Dev\\Anaconda3_64\\cwp.py C:\\Dev\\Anaconda3_64 %windir%\\system32\\cmd.exe \/k c:\\Dev\\Anaconda3_64\\Scripts\\activate.bat c:\\Dev\\Anaconda3_64<\/pre>\n

Of course, you’ll need to substitute the path you used (just copy and paste into Notepad and do a quick search and replace with the full path I used).<\/p>\n

It should start up without issue now.<\/p>\n","protected":false},"excerpt":{"rendered":"

For some reason, if you install the Python Tools for Visual Studio 2017, you’ll end up with an Anaconda command prompt that won’t work. It apparently is due to a path length limitation where the total target path exceeds some ridiculously small number in Windows for a shortcut. Thankfully, the fix isn’t painful — it’s […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[4,5],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pd5QIe-Ap","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":2070,"url":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/2070","url_meta":{"origin":2257,"position":0},"title":"Customize the External VS Code Console","date":"November 11, 2016","format":false,"excerpt":"I have Visual Studio 2015 installed and when I launch a command prompt on Windows, it\u2019s generally the Visual Studio 2015 Developer Command prompt (in fact, I have it pinned to my Windows 10 task bar). On Windows, using Visual Studio Code 1.7+, pressing SHIFT+CTRL+C opens a Windows Command prompt\u2026","rel":"","context":"In "Coding"","img":{"alt_text":"image","src":"https:\/\/i0.wp.com\/www.wiredprairie.us\/blog\/wp-content\/uploads\/2016\/11\/image_thumb.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":331,"url":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/331","url_meta":{"origin":2257,"position":1},"title":"Velocity — a rockin’ distributed in memory cache for ASP.NET","date":"June 3, 2008","format":false,"excerpt":"Velocity, the code-name for a new in-memory distributed caching system for ASP.NET was released as a Community Tech Preview today. What is it? It's described in the documentation: Microsoft project code named \"Velocity\" provides a highly scalable in-memory application cache for all kinds of data. By using cache, your application\u2026","rel":"","context":"In "Coding"","img":{"alt_text":"image","src":"https:\/\/i0.wp.com\/www.wiredprairie.us\/blog\/wp-content\/uploads\/2008\/06\/image-thumb.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1076,"url":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/1076","url_meta":{"origin":2257,"position":2},"title":"How to embed and use the Google Web Fonts in Silverlight","date":"May 23, 2010","format":false,"excerpt":"There are a few steps necessary to using one of the Google Web Fonts in Silverlight. Step 1 Go to the directory of web fonts here. \u00a0 Step 2 Pick your favorite font and click the embed link: Step 3 Verify the license is acceptable to your needs. Step 4\u2026","rel":"","context":"In "Silverlight"","img":{"alt_text":"SNAGHTML5afad2c6","src":"https:\/\/i0.wp.com\/www.wiredprairie.us\/blog\/wp-content\/uploads\/2010\/05\/SNAGHTML5afad2c6.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2170,"url":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/2170","url_meta":{"origin":2257,"position":3},"title":"How to sign Powershell scripts with self-signed certificates in Windows 10","date":"April 4, 2017","format":false,"excerpt":"I wanted to allow all signed Powershell scripts to run on a PC in our house on Windows 10. To do that, I needed a code-signing certificate. Unfortunately, the days of easily obtaining a free code signing certificate seem to have ended. Have no fear! You can create a self-signed\u2026","rel":"","context":"In "General"","img":{"alt_text":"Drag Certificate Into Trusted Root Certification Authorities","src":"https:\/\/i0.wp.com\/www.wiredprairie.us\/blog\/wp-content\/uploads\/2017\/04\/DragCertificateIntoTrusted-1.gif?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1524,"url":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/1524","url_meta":{"origin":2257,"position":4},"title":"Alternative to ApplicationSettings in .NET","date":"February 1, 2012","format":false,"excerpt":"After dealing with lost settings, an unclear upgrade path, and my own confusion surrounding the magic of Settings in a .NET client application, I decided to build my own. You\u2019re probably familiar with this UI in Visual Studio. It hasn\u2019t changed much since it was first created: A list of\u2026","rel":"","context":"In "Coding"","img":{"alt_text":"image","src":"https:\/\/i0.wp.com\/www.wiredprairie.us\/blog\/wp-content\/uploads\/2012\/02\/image.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":285,"url":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/285","url_meta":{"origin":2257,"position":5},"title":"Source Analysis for C# Released From Microsoft","date":"May 23, 2008","format":false,"excerpt":"From Microsoft.... Source Analysis is similar in many ways to Microsoft Code Analysis (specifically FxCop), but there are some important distinctions. FxCop performs its analysis on compiled binaries, while Source Analysis analyzes the source code directly. For this reason, Code Analysis focuses more on the design of the code, while\u2026","rel":"","context":"In "Coding"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/posts\/2257"}],"collection":[{"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/comments?post=2257"}],"version-history":[{"count":1,"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/posts\/2257\/revisions"}],"predecessor-version":[{"id":2259,"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/posts\/2257\/revisions\/2259"}],"wp:attachment":[{"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/media?parent=2257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/categories?post=2257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/tags?post=2257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}