My computer says...
"-bash: appcfg.py: command not found"
What is wrong?
I can run my application using google-app-engine-launcher and I have python pre-installed.
I am trying to upload my app using "appcfg.py update myapp"
I am new to Mac development.
If someone (like me) comes across this more recently due to
appcfg.py
anddev_appserver.py
still appearing frequently in the documentation:(from
google-cloud-sdk/RELEASE_NOTES
)In App Engine launcher there is a menu option called "Make Symlinks..." that adds symlinks for the various App Engine utility commands, like appcfg.py.
Because the top-voted and accepted answer doesn't explain this, and not everyone will read the comments on it, here's what to do:
Ensure you've installed Google App Engine SDK/Launcher from https://cloud.google.com/appengine/downloads?csw=1
Within it, select the option to "Make Symlinks...". "Make Command Symlinks?" may pop up in a dialog when you open it for the first time or after it's updated itself.
You'll have to do this each time it updates itself or it'll stop working. This is often what's gone wrong.
Try:
./appcfg.py
Current dir is usually not part of path.
If is not in a directory specified in the PATH environment variable and marked executable it wont execute by calling its plain name.
when in doubt the following should always work:
Using command line there are two options 1. make the two files executable and create symbolic links for them
2. export PATH and PYTHONPATH variables. To do this add following lines in
.bashrc
file