Atom platformio won't run python - command-line

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.

Related

Hello world programme is not executing

PS C:\Users\PARKHAR AGARWAL\Desktop> cd "JavaProgramming.java" //written by me in terminal.
cd : Cannot find path 'JavaProgramming.java' because it does not exist. // error
At line:1 char:1
+ cd "JavaProgramming.java"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (JavaProgramming.java:String) [Set-Location], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand
// what should i do now because i have checked that my file is present in desktop.
I m not getting Hello world as a output.
You cannot run JavaProgramming.java with CD.
Files with .java extensions are not compiled programs. You need, first of all, to compile it with some compiler, like javac. It will generate a .jar file.
After that, you can use the java command in the terminal to run this program. Example: java ./JavaProgramming.jar

error in executing lua code in vscode powershell terminal

i normally execute my lua files in the terminal with lua file-name.lua. i recently found out that you could also execute the code from terminal using lua53 .\file_name.lua where the lua version was 5.3
the lua version that im using is 5.1 so i entered lua51 .\file_name.lua on my terminal but i was given this error instead
lua51 : The term 'lua51' 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
+ lua51 .\main.lua
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (lua51:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
the lua version that im using is 5.1 so i entered
lua51 .\file_name.lua
on my terminal but i was given this error instead
try to write this
lua5.1 .\file_name.lua

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.

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.

Why do I have a terminal error in VS 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 ;)