![]() ![]() It may not be necessary to do literally everything that brew doctor tells you to.For example, if it says that there are files somewhere where it doesn't want them, it will tell you to remove them, or if the permissions on some directories are incorrect (usually the fault of a rouge installer) it will print out a chmod command to run on them. With each problem brew doctor prints, it almost always prints out a suggested course of action. brew doctor is a utility that Homebrew provides to help users diagnose why it may not be working as expected.Run ls -l /usr/local/bin | grep '/Library/Frameworks/amework'.If you encounter a lot of Error: Permission denied - #file# problems, run brew prune -dry-run and try deleting the files that it lists manually.I believe they are all under /usr/local/share/ghostscript/9.16/Resource/CIDFont/. Notably, MacTex (which you probably installed if you have a working LaTeX installation) seems to sometimes create about a dozen broken symlinks to Japanese fonts that it expects to be installed, and sets their group permissions to wheel, the only member of which on OS X is root. If you get any Error: Permission denied - #file# messsages, remove the offending file(s) manually. This will remove ALL pythons installed to this prefix, be they Python 3 or Python 2. ![]() Sudo rm -rf /Library/Frameworks/Python.Framework Check to see if /Library/Frameworks/Python.Framework exists.Even if you don't believe that you have done so, do the following: If you have ever installed any version of Python to your computer by any method other than Homebrew, you need to remove it and all traces of the installation. Start from a clean slate Remove potentially-nefarious Pythons Run brew uninstall -force python python3 opencv opencv3Ģ.It looks through the colon-delimited list of places in order, so adding export PATH=/usr/local/bin:$PATH makes it so that it checks for executables in the directory that Homebrew installs its exectuables to before anything else, so it won't accidentally use a different Python 3. Your ~/.bash_profile is basically a bash script that is executed every time you open a terminal window, and PATH is a variable that defines the places that your system will look through to find executables.When you want to exit the editor, press Esc to get out of your current mode, then type :wq which will save the file and exit vim. dd, that is, double-pressing the d key, will delete one entire line. While you are modifying the file, delete any other lines that modify PATH, and anything that references /Library/Frameworks/amework. Pressing Esc will take you out of insert mode (or any other mode you may accidentally put yourself in).Press the i key to enter 'insert mode', where you can modify a file more-or-less as you might expect to be able to. bash_profile in the vim text editor by invoking vim ~/.bash_profile. Now you can install Homebrew exactly like Brian said, if you haven't already:.Run: fink remove -recursive daemonic xinitrcĭepending on what you have installed, removing everything may be more involved, but for most people this should be all you need to do. Library/StartupItems/DarwinPortsStartup \ Fortunately, they are relatively easy to uninstall. If you have, then you need to remove them, or at least move them out of the way, as Homebrew doesn't work well with either of them. If you have never installed MacPorts or Fink, you can skip this step and move on to b. However, it likes certain things to be in certain places, so you need to remove things that might confuse it. Homebrew is hardy tool, most of the time. There are a few things that you need to address before attempting the installation. Brian Yu's guide is very helpful, and following it, you will absolutely be able to successfully install OpenCV 3 with Python 3 bindings on your system - provided that there is nothing on your system which might cause problems.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |