Hello,
I'm trying to install a python based program, the instructions call for this command.
I have python 2.7 installed & have successfully installed virtualenv using easy_install

CODE_DIR=`pwd`/program
PYTHON_BIN=/opt/python-2.5/bin/python
VIRTUALENV_BIN=`dirname $PYTHON_BIN`/virtualenv

$VIRTUALENV_BIN $CODE_DIR
cd $CODE_DIR
source bin/activate

I try to run just the first line and I get this:

Traceback <most recent call last>:
  FIle "<stdin>", line 1 in <module>
NameError: name 'program' is not defined

I would greatly appreciate any help.
Thank You!

I havent tryed virtualenv,look like program much point to folder that you have to make.
Something like this.

mkvirtualenv PROJECTNAME

#Make a folder
mkdir -p program

add2virtualenv $(pwd)/program
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.