random
random

Reputation: 194

export: Command not found

After typing module load <module-name> with a module that has the flask package, I started following the flask documentation instructions. I created the flaskr directory with a __init__.py file inside of it as instructed, and got the message

export: Command not found.

when I type the command export FLASK_APP=flaskr.

I've love to hear ideas regarding what is missing or otherwise. Thanks!

Upvotes: 1

Views: 3356

Answers (1)

alani
alani

Reputation: 13079

The documentation which you are following assumes that you are using bash or a close variant. As you are in fact using tcsh, the equivalent syntax for setting an environment variable (i.e. a variable which is inherited by child processes) is:

setenv FLASK_APP flaskr

As bash shell is more commonly used these days, much online documentation may assume that that is what you are using, so it might be beneficial to use bash to align with this. You can start a bash subshell just by typing bash (or bash -login to ensure that it reads any login scripts), but to change your login shell for future sessions, use the chsh command.

Upvotes: 1

Related Questions