I'm new to cygwin, not new to Python.
Trying to install cygwin on a system that already has Python and virtualenvwrapper installed and working fine. In CMD, I can type workon myenv
and it works normally, however when I try to run the same command in cygwin bash I get a command not found
error.
How do I get cygwin to recognize the command?
Two options here:
you can install python through the Cygwin installation tool
or
you have to execute your script with a full path to your python interpreter, this works in my case:
/cygdrive/c/Users/<username>/AppData/Local/Programs/Python/Launcher/python my_python_scritp.py
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.