Why do I have a terminal error in VS Code? - visual-studio-code

I'm trying to learn Python using VS Code. Onde of my task is to opne a file from folder in VS Code nad then run a terminal but when I'm opening it i have error like below in temrinal
PS C:\Users\Łukasz\Desktop\Exercise Files> & C:/Users/ukasz/AppData/Local/Programs/Python/Python39/python.exe "c:/Users/ukasz/Desktop/Exercise Files/Chap02/02_07_begin.py"
& : The term 'C:/Users/ukasz/AppData/Local/Programs/Python/Python39/python.exe' is not recognized as the name of a cmdlet, function, script file, or operable progra
m. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:3
+ & C:/Users/ukasz/AppData/Local/Programs/Python/Python39/python.exe "c ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:/Users/ukasz/...on39/python.exe:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\Łukasz\Desktop\Exercise Files>
Could you explain me what I'm doing wrong? I'm not sure what's wrong in the file path and what I can change. I was just adding a file from my desktop, and also just installing a Python on my computer, nothing more.
If it help - I'm learning from the Linkedin Learnign, so I'm just trying to do what they say ;)

Related

visual studio code touch command not recognized

Visual Studio Code is not recognizing the touch index.html command . It used to work. Now I get this error:
PS C:\Users\kimim_000\mynewprofile> touch index.html
touch : The term 'touch' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
touch index.html
+ CategoryInfo : ObjectNotFound: (touch:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
I had the same issue as well. I used "code" in place of "touch" to create my file.
Are you using PowerShell?
I think this answer explains it well if you are.
https://stackoverflow.com/a/67665941/15102120
Basically, touch isn't a PowerShell or Windows command. The command if this is the issue is New-Item or Get-Item

I get this error when trying flutter upgrade

I get this error when I tried flutter upgrade
& : The term 'C:\Users\USER\anaconda3\Scripts\conda.exe' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At C:\Users\USER\Documents\WindowsPowerShell\profile.ps1:4 char:4
+ (& "C:\Users\USER\anaconda3\Scripts\conda.exe" "shell.powershell" "ho ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\USER\a...ripts\conda.exe:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Currently, I don't have anaconda installed in my system
Anaconda is a distribution of the Python and it has nothing to do with flutter in any way.
Make sure that you write the right command in the terminal.

node doesnt run in intergreted terminal in vs code

I installed node js . it works in Powershell , cmd but not in vs code .
node : The term 'node' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ node -v
+ ~~~~
+ CategoryInfo : ObjectNotFound: (node:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
I had a similar issue when I installed node while vscode was already running.
Try reloading vscode. This issue on github gave me more clarity:
https://github.com/Microsoft/vscode/issues/13671#issuecomment-255778379

why isn't vs code working after downloading all necessary extensions?

my text editor (vs code ) is not working , after writing a simple c program , it throws problem like
cc : The term 'gcc' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:61
+ ... "c:\Users\HP\HTML .one\.vscode\css\hello.c\" ; if ($?) { gcc hello.c ...
+ ~~~
+ CategoryInfo : ObjectNotFound: (gcc:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
even after downloading all the necessary extension in my text editor (vs code).
The error means that the c compiler, gcc, was not found in your path. Either install it or if you already did update your search path so your IDE can find it.

Atom platformio won't run python

I am having trouble getting my atom set up as an IDE. The platformio-ide-terminal package wont run python. I have a simple file called myfile.py which prints a sentence. My working directory is in documents in a fodder I've created for a course I'm using atom for.I get the following error message in my command line in atom:
PS C:\Users\Angus\Documents\UdemyPython_10Apps\Beyond_Basics> python3 myfile.pypython3 : The term 'python3' is not recognized as the name of a cmdlet, function, script file, oroperable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ python3 myfile.py3
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (python3:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Some windows terminals accept py -3 instead of python3 as the proper alias, the command to open and run python programs.