direnv+virtualenv(python) for Ubuntu
1. sudo aptitude install direnv virtualenv
install softwares
(*)2. echo 'eval "$(direnv hook bash)" ' >> ~/.bashrc
add direnv's hook and restart terminal
3. sudo aptitude install python3
install python version3
4. mkdir foo
5. cd foo
6. virtualenv -p python3 ./
7. export EDITOR=gedit
8. direnv edit .
do not forget period
9. source bin/activate
write with gedit , save and close
it is all. try "cd foo" after out from foo directory. check python version.
first current directory is "~/"(your own directory).
0 件のコメント:
コメントを投稿