Python command and VS code - visual-studio-code

I am using Anaconda, I have chosen the interpreter as conda.exe in my ENV but still the python command does not work in VS code' s Command Prompt. What to do?
python : The term 'python' 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
+ python
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (python:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

Related

Error in VS Code during setting up client for project

The term 'yarn' 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
+ yarn create vite client
+ ~~~~
+ CategoryInfo : ObjectNotFound: (yar
n:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundExcep
tion
~~~~

Why won't it allow me to activate my venv?

I've researched a few things about opening a venv. I've come to realize I need the PowerShell to allow scripts and so I started this session with:
set-executionpolicy remotesigned
Then I went ahead and tried the following, but it is not going through.
P
S C:\Windows\system32\xxxxx> venv/bin/activate
venv/bin/activate : The term 'venv/bin/activate' 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
+ venv/bin/activate
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (venv/bin/activate:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Windows\system32\xxxxx> source venv/bin/activate
source : The term 'source' 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
+ source venv/bin/activate
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (source:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Any suggestions as how to move forward?
I had been following a tutorial and they used venv/bin/activate when it should be venv/Scripts/activate

Commands for launching a replacement instance from an AMI in AWS using powershell

Can you please let me know if there are any powershell commands to launch for launching a replacement instance from an AMI in AWS using powershell?
I tried searching the net and found this command "New-AWSWindowsHelpersReplacementInstance" but when I run this I get an error message:
New-AWSWindowsHelpersReplacementInstance : The term 'New-AWSWindowsHelpersReplacementInstance' 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
New-AWSWindowsHelpersReplacementInstance -Region eu-west-2 -InstanceI ...
+ CategoryInfo : ObjectNotFound: (New-AWSWindowsHelpersReplacementInstance:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

powershell don't recognize vscode 'code' command

I registered the 'code' command in PATH, and in cmd and GitBash the command works but in powershell not.
Does anyone know if i need to register somewhere else to be able to use the vscode command in powershell?
#EDIT:
powershell apparently doesn't read directories correctly even in version 7.1
the command 'code' returns:
D:\Program : O termo 'D:\Program' is not recognized as a cmdlet, function, script file or program name
operable. Check the spelling of the name or, if a path has been included, see if the path is correct and try
again.
In line: 1 character: 1
+ D:\Program Files\VSCode-win32-x64-1.52\bin\code.cmd
+ ~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (D:\Program:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
the command 'yarn -v' returns:
x86: The term 'x86' is not recognized as a cmdlet name, function, script file or operable program. Check the
spelling the name or, if a path has been included, check that the path is correct and try again.
In line: 1 character: 19
+ C:\Program Files (x86)\Yarn\bin\yarn.cmd -v
+ ~~~
+ CategoryInfo : ObjectNotFound: (x86:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

I'm trying to use sass by vs code terminal but it's saying that npm command not found

Command:
PS C:\Users\ACER\Desktop\index.html\Own Website code\code by sass> npm run scss
Error:
npm : The term 'npm' 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
npm run scss
+ CategoryInfo : ObjectNotFound: (npm:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException