Embark on a journey of knowledge! Take the quiz and earn valuable credits.
Take A QuizChallenge yourself and boost your learning! Start the quiz now to earn credits.
Take A QuizUnlock your potential! Begin the quiz, answer questions, and accumulate credits along the way.
Take A QuizGeneral Tech Bugs & Fixes 2 years ago
Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.
if you want to see the value of the PYTHONPATH environment variable in Cygwin bash
$ echo "PYTHONPATH=$PYTHONPATH"
or
$ set | egrep '^PYTHONPATH='
If you just s://forum.tuteehub.com/tag/type">type "dollar-variablename" as you have done bash will try to expand the contents of the variable and then run it as a command (script or executable file) - since it is really a list of directories it fails with the "command not found" message.
If you really want to run python from the Cygwin bash command s://forum.tuteehub.com/tag/line">line try something like this:
$ find "$(cygpath 'C:\' )" -mount -maxdepth 3 -iname python.exe -print 2>/dev/null
/cygdrive/c/Python27/python.exe
/cygdrive/c/Python37/python.exe
$ mkdir -p /usr/local/python/cygdrive-c-python27/bin
$ ln -s /cygdrive/c/Python27/python.exe /usr/local/python/cygdrive-c-python27/bin/python
$ export PATH="/usr/local/python/cygdrive-c-python27/bin:$PATH"
$ s://forum.tuteehub.com/tag/type">type python
python is /usr/local/python/cygdrive-c-python27/bin/python
$ python --version
Python 2.7.12
Search on google or bing or dogpile for "bash basics" or "linux command s://forum.tuteehub.com/tag/line">line basics" for more information about bash
No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.
General Tech 10 Answers
General Tech 7 Answers
General Tech 3 Answers
General Tech 9 Answers
Ready to take your education and career to the next level? Register today and join our growing community of learners and professionals.
manpreet
Best Answer
2 years ago
I am going through some programing related tutorials that require usage of use bash on Windows. I installed CYGWIN, but it seems linux uses a environmental variable called PYTHONPATH, which the default installation of Python on Windows doesnt have.
I attempted to add this environmental variable in Windows by creating a system variable as such:
Now if I run this (below) on CYGWIN, I get the following ("command not found"):
It seems to be printing out the paths, but I am also getting a command not found error. I don't know how to resolve this issue.
Thank you.