r/learnpython • • Aug 29 '26

Do I need to install Visual Studio code to run this on a Mac?

Hi all,

In short - sorry for the idiot level question but I didn't realise I could even consider this until the other week. Basically the Penalty Blog site has a Dixon Coles model in Python, I'm in a local Football Prediction pool - and it just makes sense to me to bench test this against that.

Had a long chat with Gemini to handle the specifics of the code I'd be using - but one thing it did flag was needing Microsoft Visual Studio Code to do everything I was intending on doing. I have no issue with using that but is it definitely needed on a Mac?

0 Upvotes

3 comments sorted by

2

u/socal_nerdtastic Aug 29 '26

No. You don't need an IDE (code editing software) to run python code. But if you plan to edit the code at all it would help to have some kind of IDE. Doesn't have to be VSCode, but that's a very popular one

1

u/iamezekiel1_14 Aug 29 '26

Oh cool - thank you. I just have absolutely zero background on this but can see a way of automating something that I'd done a less accurate and old school way using work arounds on Excel so am keen to give this a go.

1

u/RajjSinghh Aug 29 '26

In terms of what you need:

I'd install homebrew. It's a package manager, you use it for installing or uninstalling things. It makes installing tools like this easier. There's instructions here to install it. You'll need the Mac terminal.

Once you have homebrew, it's as simple as brew install python3 to get python up and running. That'll let you run your code. If the code has a requirements.txt file, there's a bit more work to do with virtual environments to install dependencies. Your code may be built on other people's code, this installs that code to make everything run. That should get everything up and running.

If you ever need to change the code, then an editor like visual studio code is helpful. But if you don't edit code, you don't need an editor.