Jun-26-2017, 02:53 PM
I'm trying to run my hello world in python and im using powershell as my terminal and notepad++ as my register and I keep seeing this error message
Windows PowerShell
Copyright © 2016 Microsoft Corporation. All rights reserved.
PS C:\Users\Home> python ex1.py
C:\Anaconda3\python.exe: can't open file 'ex1.py': [Errno 2] No such file or directory
PS C:\Users\Home> python
Python 3.5.2 |Anaconda 4.1.1 (64-bit)| (default, Jul 5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> ex1.py
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'ex1' is not defined
>>> python
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'python' is not defined
>>> cd temp
File "<stdin>", line 1
cd temp
^
SyntaxError: invalid syntax
>>>
can anyone help me with this?
Windows PowerShell
Copyright © 2016 Microsoft Corporation. All rights reserved.
PS C:\Users\Home> python ex1.py
C:\Anaconda3\python.exe: can't open file 'ex1.py': [Errno 2] No such file or directory
PS C:\Users\Home> python
Python 3.5.2 |Anaconda 4.1.1 (64-bit)| (default, Jul 5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> ex1.py
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'ex1' is not defined
>>> python
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'python' is not defined
>>> cd temp
File "<stdin>", line 1
cd temp
^
SyntaxError: invalid syntax
>>>
can anyone help me with this?