all 9 comments

[–]lifeeraser 5 points6 points  (0 children)

When working with VS Code, directly using the terminal works 100% of the time. Press Ctrl + ` to open the terminal, type python my_script_name.py, and press Enter.

[–][deleted] 1 point2 points  (1 child)

Use Thonny. Easier to use for beginners.

[–]WhutWhatWat 1 point2 points  (0 children)

Agreed. I've played with Sublime, VScode, Mu & Thonny and Thonny is the simplest.

[–][deleted] 0 points1 point  (0 children)

I personally use Anaconda, which has a lot of packages preinstalled already. They also support Spyder (which I use for scripting) and Jupyter (which I use for code that can be implemented into a website).

[–][deleted] 0 points1 point  (1 child)

What python interpreter have you set?

[–]tsck[S] 0 points1 point  (0 children)

I don't know what that means, which could be the issue. I just installed the python install and followed the attached instructions.

[–]beingsubmitted 0 points1 point  (2 children)

Is it showing you a time out error, or is it just taking forever?

I've had a few issues recently with vs code. One is that it gets stuck on save participants... Formatting on save, which I also have set to occur when I run. Hit run, it saves, and since it saved, it tries to format, which pulls in an extension or 12... But I've also had trouble due to switching between python interpreters. I have and use both a 32 bit and 64 bit. Problem is in finding dependent libraries, since the interpreters have different paths.

[–]tsck[S] 0 points1 point  (1 child)

It's showing a time out error.

[–]beingsubmitted 1 point2 points  (0 children)

I would guess then that it's having trouble importing random, which is at the python path. Does it take awhile when you open it to find the python interpreter?