[PYTHON] Mac OS Preferences

Bash --bach_profile: Executed only at login --bashrc: Executed every time bach starts

Python Python is not compatible between versions, so it is desirable to be able to switch between versions as needed. You can use Anaconda or pyenv for version control, but it's not recommended to have them on the same machine. The introduction method of pyenv is explained below.

pyenv A tool that makes it easy to switch between python versions.

brew install pyenv

If you write to bash, you can use the pyenv command.

echo 'eval "$(pyenv init -)"' >> ~/.bach_profile

Option list

pyenv + <option> Description
install -l Check the version that can be installed
install Install a version
versions Check the version installed in your environment
global Switch python versions across machines
local Switch the python version under the current directory

ROOT

mkdir /usr/local/root/root-6.06.02/
cd /usr/local/root/root-6.06.02/
mkdir cmake_build_python3
cd cmake_build_python3
cmake .. -Dall=ON -DPYTHON_EXECUTABLE=/usr/local/bin/python3 -Dsoversion="ON"

ROOT6 root-6.18.04 Last used option

cmake .. -Dall=ON -DPYTHON_EXECUTABLE=/usr/local/bin/python3 -Dbuiltin_xrootd=ON

Below, the procedure until the compilation is completed --Installing CUDA Added the following to bashrc

Recommended Posts

Mac OS Preferences
Memo on Mac OS X
Install Sphinx on Mac OS X
Install Scipy on Mac OS Sierra
Install mitmproxy on Mac OS X
Install pgmagick on Mac OS X 10.9
Mac OS X Mavericks 10.9.5 Development environment construction
Installed aws-cli On Mac OS X Lion
Mac OS X Yosemite 10.10 Development environment construction
Mac OS X development environment construction memo
Run NASA CEA on Mac OS X
Preparing to run ImageMagick + im4java on Mac OS
Mac OS X Mountain Lion 10.8.5 Development environment construction
Shpinx (Python documentation builder) on Mac OS X