boxen

Pyenv not auto activating

≡放荡痞女 提交于 2020-01-02 07:03:42
问题 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

Why does Phoenix (ecto/Postgresx) fail to Connect in dev

自作多情 提交于 2019-12-08 16:38:22
问题 I am beginning my Elixir/Phoenix journey and having some trouble with my postgres connection. When I start up my server I get: $ mix phoenix.server [error] Postgrex.Protocol (#PID<0.214.0>) failed to connect: ** (Postgrex.Error) tcp connect: connection refused - :econnrefused [error] Postgrex.Protocol (#PID<0.217.0>) failed to connect: ** (Postgrex.Error) tcp connect: connection refused - :econnrefused [error] Postgrex.Protocol (#PID<0.218.0>) failed to connect: ** (Postgrex.Error) tcp

Pyenv not auto activating

扶醉桌前 提交于 2019-12-05 21:41:35
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,