Coexistence of pyenv and autojump

When writing code in python, pyenv is popular these days. However, the path around python changes drastically, so if you apply a specific python version under a certain directory, autojump will not work in that directory as well.

The cause is ...

If you do python --version in the directory where pyenv is set, I think that it is the target version, but directories such as / usr / local / bin also try to work with this version, so the python library can be found Without it, autojump etc. will not work

approach!

It works well if you specify the version of python for the part under / usr that you obviously do not expect to work with pyenv.

pyenv_to_system_dir


$ cd /usr
$ sudo pyenv local system

Like this, in my case I set python of system (OS default) to be applied under / usr. What you install with brew basically goes into / usr / local / bin, so system python will be applied to them regardless of their current directory.

Recommended Posts

Coexistence of pyenv and autojump
Mechanism of pyenv and virtualenv
Coexistence of Python2 and 3 with CircleCI (1.0)
Coexistence of Flask logging and other module logging
Coexistence of Fcitx and Zoom ~ With Japanese localization ~
python development environment -use of pyenv and virtualenv-
Coexistence of Anaconda 2 and Anaconda 3 in Jupyter + Bonus (Julia)
Install pyenv and pyenv-virtualenv
Summary of pyenv usage
A story of trying out pyenv, virtualenv and virtualenvwrapper
Problems of liars and honesty
Pre-processing and post-processing of pytest
Combination of recursion and generator
Combination of anyenv and direnv
Explanation and implementation of SocialFoceModel
Notes on pyenv and Atom
Introduction of caffe using pyenv
Use and integration of "Shodan"
Problems of liars and honesty
python with pyenv and venv
Catalina on Mac and pyenv
Occurrence and resolution of tensorflow.python.framework.errors_impl.FailedPreconditionError
Comparison of Apex and Lamvery
Source installation and installation of Python
Introduction and tips of mlflow.Tracking
Various of Tweepy. Ma ♡ and ♡ me ♡
Basic knowledge of Linux and basic commands
Order of arguments of RegularGridInterpolator and interp2d
The story of Python and the story of NaN
Explanation and implementation of PRML Chapter 4
Raise the version of pyenv itself
Benefits and examples of using RabbitMq
Explanation and implementation of ESIM algorithm
Danger of mixing! ndarray and matrix
Installation of SciPy and matplotlib (Python)
Significance of machine learning and mini-batch learning
Introduction and implementation of activation function
Memorandum of saving and loading model
Misunderstandings and interpretations of Luigi's dependencies
Explanation and implementation of simple perceptron
Environment construction memo of pyenv + conda
Calculation of homebrew class and existing class
This and that of python properties
Design of experiments and combinatorial optimization
Installation and easy usage of pytest
Clash of Clans and image analysis (3)
Install and configure `pyenv` Ansible playbook
Features of symbolic and hard links
Summary of Python indexes and slices
Aggregation and visualization of accumulated numbers
Reputation of Python books and reference books
Environment construction with pyenv and pyenv-virtualenv
3 types of workarounds for activate collision problem when pyenv and anaconda coexist