Hi all, I would like to start to learn Python.
I kindly ask you to give me some advices, please:
- Good tutorial for the beginners;
- Good and free IDE to start; windows 10 x64
- May be some another advices. You are welcome.
I will read topics, but I also will be pleased when you answer here.
thanks a lot
Of course the answers are all going to be biased, but here's mine:
Counses:
IDE:
Other
Package repository:
https://pypi.org/
Hi all. It seems to me that I installed VS and python
and tried to write the first program and would like to run it.
But I can not. How can I start to run program at this ide and where I will see the result.
Could you tell me please.
I would like to ask you, if I did everything correct? see the attachment, please
P.S sorry for this question
screen shot
https://ibb.co/SX7sCfv
screen shot
On top menu right hand side there is a Right pointing arrow. Click that to run.
you can also right click in code window and then left click 'Run python file in terminal'
If you followed the VSCode from start tutorial, you should have all the necessary packages installed.
thanks
I did this earlier, but something is wrong. May be something is not installed properly?
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
PS C:\> & 'C:\Users\Viktor S\AppData\Local\Programs\Python\Python39\python.exe' 'c:\Users\Viktor S\.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\lib\python\debugpy\launcher' '55781' '--' 'Untitled-2'
Traceback (most recent call last):
File "C:\Users\Viktor S\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\Viktor S\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "c:\Users\Viktor S\.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\lib\python\debugpy\__main__.py", line 45, in <module>
cli.main()
File "c:\Users\Viktor S\.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\lib\python\debugpy/..\debugpy\server\cli.py", line 444, in main
run()
File "c:\Users\Viktor S\.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\lib\python\debugpy/..\debugpy\server\cli.py", line 285, in run_file
runpy.run_path(target_as_str, run_name=compat.force_str("__main__"))
File "C:\Users\Viktor S\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 267, in run_path
code, fname = _get_code_from_file(run_name, path_name)
File "C:\Users\Viktor S\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 237, in _get_code_from_file
with io.open_code(decoded_path) as f:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Untitled-2'
PS C:\>
thanks but...
Error:
[Running]
python -u "C:\Users\VIKTOR~1\AppData\Local\Temp\tempCodeRunnerFile.python"
Python
[Done] exited with code=9009 in 0.175 seconds
I think, that something is not installed properly or I must correct maybe the PATH or?
Maybe somebody knows what I have to change? thanks
Look at
this it's the same for 3.9.
So you test that
python
and
pip
command work from anywhere in
cmd
Then in
setting.json
VS Code.
"php": "php",
"python": "$pythonPath $fullFileName",
"perl": "perl",
Then try run code again in VS Code.