pyenvを使って、pythonの環境を作成しています。
ターミナル起動時にパスが上手く通らないようで、
sourceで再読み込みすると通ります。
実行:
❯ python -V Python 2.7.15 ~ ❯ which python /usr/local/bin/python ~ ❯ source ~/.zprofile ~ ❯ python -V Python 3.7.0 ~ ❯ which python /Users/MY_NAME/.pyenv/shims/python
.zprofile
if [ -f ~/.zshrc ] ; then . ~/.zshrc fi # composer export PATH=$PATH:$HOME/.composer/vendor/bin # cargo export PATH=$HOME/.cargo/bin:$PATH # nodebrew export PATH=$HOME/.nodebrew/current/bin:$PATH # >>> conda init >>> # !! Contents within this block are managed by 'conda init' !! __conda_setup="$(CONDA_REPORT_ERRORS=false '/anaconda3/bin/conda' shell.bash hook 2> /dev/null)" if [ $? -eq 0 ]; then \eval "$__conda_setup" else if [ -f "/anaconda3/etc/profile.d/conda.sh" ]; then . "/anaconda3/etc/profile.d/conda.sh" CONDA_CHANGEPS1=false conda activate base else \export PATH="/anaconda3/bin:$PATH" fi fi unset __conda_setup # <<< conda init <<< # pyenv export PATH=$HOME/.pyenv/shims:$PATH eval "$(pyenv init -)" eval "$(pyenv virtualenv-init -)"
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/10/22 02:37