blei-lab / edward

A probabilistic programming language in TensorFlow. Deep generative models, variational inference.
http://edwardlib.org
Other
4.83k stars 759 forks source link

Add pyenv's .python-version to .gitignore #870

Closed patrickeganfoley closed 6 years ago

patrickeganfoley commented 6 years ago

Adds .python-version to .gitignore.

dustinvtran commented 6 years ago

Interesting. Where does this one appear?

patrickeganfoley commented 6 years ago

It will show up anywhere you specify a local python version.

cd
brew install pyenv
pyenv install -l       # lists available versions of python you can install
pyenv install 3.8-dev
pyenv install 2.7.14
pyenv global 3.8.-dev   #  you are now using 3.8

cd edward
pyenv local 2.7.14        
pyenv version 

The pyenv local line creates edward/.python-version which sets you up to use 2.7.14 in that folder.

It makes it super easy to manage multiple python installations.

dustinvtran commented 6 years ago

Got it. Let's defer on merging it to master. At the moment, .gitignore is a mess. In the future, we should probably have it mimick another repo like TensorFlow's.