osx - Installing Local Version of Python -


i'm trying install own version of python independent of system 1 on mac. basically, i'm following machine learning tutorial. i'm in step 4.4 i'm trying run command "python create_lmdb.py" in command-line, error saying opencv module not found.

so, found latest opencv tutorial sierra install opencv properly. in step 2 , 3 i've tried edit /.bash_profile "export path=/usr/local/bin:$path". i've saved , opened file confirm file changed. continued tutorial, when "which python" find python still system version file path of /usr/bin/python rather /usr/local/bin/python.

i've spent 3 days on problem. i've searched around on here , tried various solutions. i've contacted apple, of course couldn't help...or wouldn't. googled crazy. i've tried installing different distribution of python. i've tried uninstalling , reinstalling python.

thanks in advance help.

in essence, don't want change. various reasons changing system believes "python" not ideal. more detailed anser can found here, don't want click through need create bash alias path desire.

i.e. alias py=/usr/bin/python3 or whatever actual path is.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -