Allow use of system python in conda env? -
is there way force conda use system version of python (along of system libraries) in given env?
i have conda enabled default in shell, can bit annoying, because if try run system python app, gets different version of python expecting (python still defaults 2.7 on *buntu), , won't run. root env of conda redirect system python install.
you need edit user shell run commands such .bashrc file prepend bin directory of anaconda path export path=~/anaconda/bin:$path
, while in root run commands append export path=$path:~/anaconda/bin
. in both cases have access conda
command. can check python run typing $env python --version
. can check other versions available , order of priority (if other removed) using $type -a python
. of course ensure executable python files have #!/usr/bin/env python
, not other direct route python executable. further info google bash shell queries http://www.cyberciti.biz/tips/an-example-how-shell-understand-which-program-to-run-part-ii.html.
Comments
Post a Comment