I have pyenv installed in my environment and up to this weekend (when I installed 'Kivy') my pyenv/local setup has been working fine. But now when I go to my various python project directories, pyenv does not automatically activate the right python version properly.
E.g.
I create an environment using pyenv like this,
pyenv virtualenv 3.3.2 work
I make and go into a dir called work
and have a .python-version
file with the text work
as the sole content.
Pyenv detects that my environment is work
using this file but my python version is not python 3.3.2
instead it's 2.7.9
.
For some reason, something happened, and all of my pyenv virtual environments use 2.7.9
as opposed to the python version they were created with.
When I run which python
I get,
/opt/boxen/homebrew/bin/python
when I go to the pyenv version directory and run
$ cat pyvenv.cfg
home = /opt/boxen/pyenv/versions/3.3.2/bin
include-system-site-packages = false
version = 3.3.2
However, if I run pyenv activate
I my python version switches to python 3.3.2
(or the appropriate version for a given env).
Question is, how do I get pyenv to auto activate the environment's python version as it did before (before I did something to break it).
pyenv
is in my path, here's my path,export PATH="/Users/me/.autojump/bin:bin:/opt/boxen/rbenv/shims:/opt/boxen/rbenv/bin:/opt/boxen/rbenv/plugins/ruby-build/bin:/opt/boxen/pyenv/shims:/opt/boxen/pyenv/bin:node_modules/.bin:/opt/boxen/nodenv/shims:/opt/boxen/nodenv/bin:/opt/boxen/bin:/opt/boxen/homebrew/bin:/opt/boxen/homebrew/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin"
– Vinia