Homebrew; El Capitan, Sierra and High Sierra. Untested everywhere else. Homebrew documentation. Brew help, man brew, Homebrew/brew's README or check Homebrew's. El Capitan & Homebrew Source: homebrew/ElCapitanandHomebrew.md at master Homebrew/homebrew. Lire la suite ». Here is how you can fix the permission issues with Homebrew in Mac OS X El Capitan: If you had created the /usr/local directory already, then run this command in terminal: sudo chown $(whoami):admin /usr/local && sudo chown -R $(whoami):admin /usr/local.
From the machine-learning-scientific-and-plotting dept. (71840) (26) by Luis
Here is a very quick way to install octave with aquaterm on Mac OS X 10.10 a.k.a. Yosemite as well as 10.11 a.k.a El Capitan. Note that these steps are not for the feign of heart and your millage might vary... Follow at your own risk.
updated 2016-11-21 22:32 GMT - tested with macOS Sierra (10.12) works well
updated 2015-10-07 21:58 GMT - tested with El Capitan (10.11) works well
updated 2015-06-21 09:17 GMT - adds homebrew/science tap
updated 2014-10-24 05:15 GMT - includes MacTex
Before you start you need to get your system setup. You will need:
- install Xcode from Apple's dev site
- install Xcode command line utilities from Xcode add-ons
- install hombrew
- install AquaTerm from sourceforge
- install Mac Latex (MacTex) from tug.org
- (optional) install Java
Yep, note that I'm assuming that you already have a working Homebrew installation, compilers, and AquaTerm ready... Then you may do:
brew tap homebrew/science
brew reinstall gnuplot --with-aquaterm
gnuplot
# make sure it says 'terminal set to aqua'brew install lua51
# yes, you also need this old version of Luabrew install octave
Installing Octave will take a while and it will install Lua 2.x as a dependency. If you see the make check | tee make-check.log
taking an extremely long time. You might have to open a new terminal and navigate to cd /tmp/octave*
and cat make-check.log
to see where it went wrong. In my case it used to stop while loading lua dynlib files but installing the older lua51 fixed it.
When updating your operating system to a newer version of MacOS (macOS now), you may need to reinstall Octave if you see an error like:
Try: brew reinstall gcc arpack
. If that does not fix it, then try: brew reinstall octave --without-arpack
. And if this fails, you may use: brew reinstall octave --with-java
.
Leave a comment if you need help, but this should do the trick ;) Now you can move on with your Machine Learning studies!
Here is a quick way to know everything works correctly:
octave
a = [2;3;4;5;6;3;4;32;3;2;1;4;5;6;7;]
b = [12;23;44;55;66;12;44;9;5;27;111;23;66;89;88;]
plot ([a, b])
Happy plotting!
Mac OS X comes with Python 2.7 out of the box.
You do not need to install or configure anything else to use Python 2. Theseinstructions document the installation of Python 3.
The version of Python that ships with OS X is great for learning, but it’s notgood for development. The version shipped with OS X may be out of date from theofficial current Python release,which is considered the stable production version.
Doing it Right¶
Let’s install a real version of Python.
Before installing Python, you’ll need to install GCC. GCC can be obtainedby downloading Xcode, the smallerCommand Line Tools (must have anApple account) or the even smaller OSX-GCC-Installerpackage.
Note
If you already have Xcode installed, do not install OSX-GCC-Installer.In combination, the software can cause issues that are difficult todiagnose.
Note
If you perform a fresh install of Xcode, you will also need to add thecommandline tools by running xcode-select--install
on the terminal.
While OS X comes with a large number of Unix utilities, those familiar withLinux systems will notice one key component missing: a package manager.Homebrew fills this void.
To install Homebrew, open Terminal
oryour favorite OS X terminal emulator and run
The script will explain what changes it will make and prompt you before theinstallation begins.Once you’ve installed Homebrew, insert the Homebrew directory at the topof your PATH
environment variable. You can do this by adding the followingline at the bottom of your ~/.profile
file
If you have OS X 10.12 (Sierra) or older use this line instead
Homebrew El Capitan Free
Now, we can install Python 3:
This will take a minute or two.
Homebrew El Capitan Software
Pip¶
Homebrew installs pip
pointing to the Homebrew’d Python 3 for you.
Working with Python 3¶
At this point, you have the system Python 2.7 available, potentially theHomebrew version of Python 2 installed, and the Homebrewversion of Python 3 as well.
will launch the Homebrew-installed Python 3 interpreter.
will launch the Homebrew-installed Python 2 interpreter (if any).
will launch the Homebrew-installed Python 3 interpreter.
If the Homebrew version of Python 2 is installed then pip2
will point to Python 2.If the Homebrew version of Python 3 is installed then pip
will point to Python 3.
The rest of the guide will assume that python
references Python 3.
Homebrew El Capitan
Pipenv & Virtual Environments¶
Homebrew El Capitan Free
The next step is to install Pipenv, so you can install dependencies and manage virtual environments.
A Virtual Environment is a tool to keep the dependencies required by different projectsin separate places, by creating virtual Python environments for them. It solves the“Project X depends on version 1.x but, Project Y needs 4.x” dilemma, and keepsyour global site-packages directory clean and manageable.
For example, you can work on a project which requires Django 1.10 while alsomaintaining a project which requires Django 1.8.
So, onward! To the Pipenv & Virtual Environments docs!
El Capitan Mac Os
This page is a remixed version of another guide,which is available under the same license.