I have been following instructions that I found online to try to use virtualenv
My steps were:
sudo easy_install pip- I'm doing this in my home directorysudo pip install virtualenv- I think virtualenv is installed at this point because when I try again, it says Requirement already satisfiedThe instructions then tell me to cd to my desktop and type in
virtualenv envyet the output is as follows"-bash: virtualenv: command not found"
Does it mean that the shell can't find the command virtualenv? I thought I installed it.
-
2Yes, it means the shell can't find the command. Try opening a new shell.wim– wim2014年04月30日 15:24:37 +00:00Commented Apr 30, 2014 at 15:24
-
Also make sure that where the binaries lie, those folder(s) are in your PATH.Scott– Scott2014年04月30日 15:31:14 +00:00Commented Apr 30, 2014 at 15:31
1 Answer 1
$PATH should contains directory where virtualenv installed. your pip might install into /usr/local/bin (or other pip's default directory).
you can add some pathes in ~/.bashrc or ~/.profile~ files.
$ cat ~/.profile
export PATH=$PATH:/usr/local/bin
if you can't find virtualenv in /usr/local/bin, then you might want to change pip install directory with -d option.
$ pip install -d your_path virtualenv
...
$ your_path/virtualenv
if PATH include your_path, simply use
$ virtualenv
And this question & answer can help you.