how can I find the path of virtualenv python

主宰稳场 提交于 2019-12-04 16:29:28

You can use which to find out which binary will be executed...

For example:

$ which python3
/home/attie/projects/thing/venv/bin/python3

By default it just shows the first match, but you can give the -a argument to show all:

$ which python3
/home/attie/projects/thing/venv/bin/python3
/usr/bin/python3

mkvirtualenv creates virtualenvs in $WORKON_HOME, that is your virtualenv is in $HOME/.virtualenvs/cv/.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!