Django and Python 3 How to Setup pyenv for Multiple Pythons

preview_player
Показать описание
We need to be doing Django development in Python 3. Unfortunately, we have a lot of projects still in Python 2.7 so switching between the 2 versions can be frustrating. Fortunately pyenv takes the guess work out of switching, and makes it super simple.

Рекомендации по теме
Комментарии
Автор

.bash_profile (OSX) .bashrc (Debian) Took me a while to figure it out ;)

hansfrans
Автор

Containers seems to separate project deps quite well than using native solutions like pyenv. It depends on trade off choices among our approaches to solve a problem.

zubairalam
Автор

Buddy, great video. One question: do you know how to change bash prompt after a virtual environment is activated? When I had only Python from my system with virtualenv, in my folder "~/.env" had one file "postactivate" for that purpose, but at folder "~/.penv" there is no such file or similar.

billiardoxx
Автор

Thank you!! just small question...why u didnt choose to install pyenv with homebrew? do you will be easier? :)

dante
Автор

.bashrc in archlinux for initiating pyenv

skepticalmind
Автор

Or you could just use an operating system that lets you install multiple versions of Python in parallel.

searchingfortao
join shbcf.ru