how to check that my python path is set up properly? - python-3.x

I have been trying to fix my path but still get an error in the Anaconda powershell when i type path i get
The term 'path' 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
+ path
+ ~~~~
+ CategoryInfo : ObjectNotFound: (path:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
How can i check that my path is set up successfully?
Many Thanks

Related

Unable to run protoc in virtualenv

I am trying to train a tensorflow pretrained model with some data. I have created a virtual environment to manage the versions of libraries properly. However, I am unable to run the 'protoc' command in the virtual environment. It runs fine outside the virtual environment as I have already added the protoc.exe file to path.
This is the error I get :
(environment_3_9_7) PS C:\Users\dipes\Desktop\Computer Vision\Computer Vision Assignment> protoc
protoc : The term 'protoc' 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
+ protoc
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (protoc:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
How to add the protoc.exe to the path of virtualenv ?
Simply pasting the protoc.exe file in the /Scripts of the virtual environment solved the issue for me.

The term 'node' is not recognized as the name of a cmdlet,

PS D:\javascripr\wen_shen_test_package> node hellow.js
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 inclu
ded, verify that the path is correct and try again.
At line:1 char:1
node hellow.js
+ CategoryInfo : ObjectNotFound: (node:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Excuse me ,what can i change for?
You have not installed node.js on your pc.
https://nodejs.org/en/download/
If it is already installed
1.Create index.js file on your desktop and add this code in it:
a=2
b=3
console.log(a*b)
shift+ right click on your desktop, click on open powershell window here.
enter command:
node index.js
it will show the value of a*b
Above given code is an example of how to access particular js file using node

How to fix "CommandNotFoundException" in PowerShell when executing python code?

I started a python basics course on Udemy and followed the instructions to execute the first start.py code in PowerShell.
I opened PowerShell in the same folder as the start.py.
PS C:\Users\burigs\Desktop\Desktop\Programming\Python\IntroToProgramming> python .\start.py
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 .\start.py
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (python:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

Error Python script in atom windows power shell

I am getting error when I am trying to execute a Python script in Atom.
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:7
+ python <<<< .\loading.py
+ CategoryInfo : ObjectNotFound: (python:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException]1
It looks like you have not added the path to Python, in your Environmental Path variable.
Try adding C:\Python36\ and C:\Python36\Scripts\ to the PATH
Add this path to the 'Path' in system variable in environment variables.
C:\Users\%user profile%\AppData\Local\atom\bin
Make sure to use your "user profile" in the path. It worked for me!
Open atom through power shell
Should work

How to fix error when trying to run node web-server.js

I've installed node.js through Win8 powershell and now want to run the web-server.js that comes with the AngularJS tutorial.. however, this time around Windows8 Powershell is behaving differently from my experience in Win7 - I get the following error:
C:\Users\xx\angular-phonecat\scripts [master +24 ~0 -0 !]> web-server.js
web-server.js : The term 'web-server.js' 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
+ web-server.js
+ ~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (web-server.js:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Suggestion [3,General]: The command web-server.js was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default. If you trust this command, instead type ".\web-server.js". See "get-help about_Command_Precedence" for more details.
You have to run using the following command:
node web-server.js
is not recognized as the name of a cmdlet, function, script fil

Resources