Skip to content

Instantly share code, notes, and snippets.

@scw scw/navigator fix
Last active Sep 12, 2018

Embed
What would you like to do?
Patch Anaconda Navigator to use conda executable instead of root python wrapper to conda
# 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
--- 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.