how can I find the path of virtualenv python ,built with this tutorial?
(i want to find python in this env and use it in my eclipse)
JavaScript
x
12
12
1
$ sudo pip install virtualenv virtualenvwrapper
2
$ export WORKON_HOME=$HOME/.virtualenvs
3
$ source /usr/local/bin/virtualenvwrapper.sh
4
5
$ echo -e "n# virtualenv and virtualenvwrapper" >> ~/.bashrc
6
$ echo "export WORKON_HOME=$HOME/.virtualenvs" >> ~/.bashrc
7
$ echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc
8
9
$ source ~/.bashrc
10
11
$ mkvirtualenv cv -p python3
12
Advertisement
Answer
You can use which
to find out which binary will be executed…
For example:
JavaScript
1
3
1
$ which python3
2
/home/attie/projects/thing/venv/bin/python3
3
By default it just shows the first match, but you can give the -a
argument to show all:
JavaScript
1
4
1
$ which -a python3
2
/home/attie/projects/thing/venv/bin/python3
3
/usr/bin/python3
4