0

I have been following instructions that I found online to try to use virtualenv

My steps were:

  1. sudo easy_install pip - I'm doing this in my home directory

  2. sudo pip install virtualenv - I think virtualenv is installed at this point because when I try again, it says Requirement already satisfied

  3. The instructions then tell me to cd to my desktop and type in virtualenv env yet 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.

Ffisegydd
54k16 gold badges151 silver badges125 bronze badges
asked Apr 30, 2014 at 15:22
2
  • 2
    Yes, it means the shell can't find the command. Try opening a new shell. Commented Apr 30, 2014 at 15:24
  • Also make sure that where the binaries lie, those folder(s) are in your PATH. Commented Apr 30, 2014 at 15:31

1 Answer 1

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.

answered Apr 30, 2014 at 15:37
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.