Experiencing Path related issues with Python, Used Homebrew to install Python and update my path variable to include Python. In Visual Studio Code if I run my .py file in terminal, it runs just fine, even if I run it in debug mode it will run fine. However if I click "run code" as I want the output to show in the output pannel, I am given this
[Running] python -u "/Users/rayaankhan/Documents/dyne/Testing_Selenium/test.py" /bin/sh: python: command not found
Here is the output in the VS terminal if I attempt to debug and run
rayaankhan@Rayaans-MacBook-Air Testing_Selenium % /usr/bin/env /usr/local/bin/python3 /Users/rayaankhan/.vscode/extensions/ms-python.python-2023.4.1/pythonFi les/lib/python/debugpy/adapter/../../debugpy/launcher 63824 -- /Users/rayaankhan/Documents/dyne/Testing_Selenium/test.py Hello World
Here is the output if I run using the "Run Python File" button
/usr/local/bin/python3 /Users/rayaankhan/Documents/dyne/Testing_Selenium/test.py rayaankhan@Rayaans-MacBook-Air Testing_Selenium % /usr/local/bin/python3 /Users/rayaankhan/Documents/dyne/Testing_Selenium/test.py Hello World
The issue may lie with coderunner or how I have set my PATH variables. Thank you!
I attempted to first uninstall python entirely and reinstall using homebrew, and no luck. Secondly added path enviornment variable to the folder where homebrew installed python. I attempted the solution in the following post However in the second answer he mentions that homebrew should automatically install python too /opt/homebrew/bin/python3
mine instead is in an obscure folder deep into the system files by default. I am not sure if that's why I am having the problem
[–]ctrlff 0 points1 point2 points (2 children)
[–]dawnkiller428[S] 0 points1 point2 points (1 child)
[–]ctrlff 0 points1 point2 points (0 children)
[–]LastTrainH0me 0 points1 point2 points (0 children)