I\'m trying to use virtualenv in Ubuntu to install a local virtual Python environment. When I run the shell command:
$ virtualenv ./virt_python
<
Check the current version of virtualenv. As answered by user2676043 in the same thread, virtualenv is installed in /usr/local/lib/python2.7/dist-packages. So run the following command:
$ python /usr/local/lib/python2.7/dist-packages/virtualenv.py --version
It will return you the version of virtualenv installed on system.
Now, change the executable file.
$ vim /usr/local/bin/virtualenv
Change the version to the one received above. Save the file and it works smoothly.