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
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