I have been trying to install Open CV 3 on my mac using this tutorial but I cannot get past step three.
So after I do
brew install python
# Setting PATH for Python 3.5
# The orginal version is saved in .bash_profile.pysave
# Your previous /Users/UserName/.bash_profile file was backed up as /Users/UserName/.bash_profile.macports-saved_2016-07-26_at_12:50:19
# MacPorts Installer addition on 2016-07-26_at_12:50:19: adding an appropriate PATH variable for use with MacPorts.
# Finished adapting your PATH environment variable for use with MacPorts.
Is there a
directory? (Version number might differ.)
Is there a
If the Cellar directory is present, but the file isn't, then Homebrew decided to be careful and not put Python in
You could manually do
brew link python
and see if there's now a
In your case, it appears you have some files related to Python (they might be from a Python 3 installation, can't tell), such as
2to3. You can safely overwrite them, since Python 2 also has this.
brew link --overwrite python
Specific Python versions will always exist as
python3.5 etc (including the full path as necessary). Thus, even overwriting the
python executable is safe (provided it's not the system one in
/usr/bin): you should then simply be explicit which python executable to use.
Also, when using a tool like
pip, you can make sure you're using the correct version by running it e.g. as
/usr/local/bin/pythnon2.7 -m pip <...>
or whatever python executable you want to install things for.