Skip to content
All gists
Back to GitHub
Sign in
Sign up
Sign in
Sign up
{{ message }}
Instantly share code, notes, and snippets.
scw
/
navigator fix
Last active
Sep 20, 2019
Star
1
Fork
0
Star
Code
Revisions
4
Stars
1
Embed
What would you like to do?
Embed
Embed this gist in your website.
Share
Copy sharable link for this gist.
Clone via HTTPS
Clone with Git or checkout with SVN using the repository’s web address.
Learn more about clone URLs
Download ZIP
Patch Anaconda Navigator to use conda executable instead of root python wrapper to conda
Raw
navigator fix
# NOTE: activate the environment containing Pro + Anaconda Navigator, and copy the
# navigator-pro.patch to your working directory.
conda install -y m2-patch
patch --binary %CONDA_PREFIX%\Lib\site-packages\anaconda_navigator\api\conda_api.py navigator-pro.patch
Raw
navigator-pro.patch
--- Lib/site-packages/anaconda_navigator/api/conda_api.py.orig 2018-09-12 02:16:59.656798200 -0400
+++ Lib/site-packages/anaconda_navigator/api/conda_api.py 2018-09-12 02:18:34.688376200 -0400
@@ -410,12 +410,12 @@
"""
if abspath:
if sys.platform == 'win32':
-
python = join(self.ROOT_PREFIX, 'python.exe')
-
conda = join(self.ROOT_PREFIX, 'Scripts', 'conda-script.py')
+
conda = join(self.ROOT_PREFIX, 'Scripts', 'conda.exe')
+
cmd_list = [conda]
else:
python = join(self.ROOT_PREFIX, 'bin/python')
conda = join(self.ROOT_PREFIX, 'bin/conda')
-
cmd_list = [python, conda]
+
cmd_list = [python, conda]
else:
# Just use whatever conda is on the path
cmd_list = ['conda']
Sign up for free
to join this conversation on GitHub
. Already have an account?
Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.