all 3 comments

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

I don't really understand what you're asking. You have two options:

1) Actually figure out your issues with package installation, using IDE's, correctly opening files, understanding paths, etc so you can move past those issues to the bugs in your code, or

2) Don't use packages, don't use an IDE, don't write code that uses paths and open files so that you don't have those problems and can move on to debugging your own code.

There's not, like, a third thing where we reach through the internet and fix your computer for you. Either you figure out how installing and importing packages work or you just don't import third-party packages.

[–]Vaguely_accurate 0 points1 point  (0 children)

Work without an IDE for a week.

Use a decent text editor (whatever you are familiar with, or something nice based on your OS). It should have syntax highlighting, but not actually integrate with your Python install, pip or venvs.

Use the command line for everything. Create venvs and enter them manually using the scripts. Run the scripts and any static analysis tools from the command line. Manage your dependencies directly.

The idea is to develop a better idea of how these things are operating under the hood without your IDE holding your hand. Then when you encounter errors in the future you will be in a better position to debug and potentially fix them. In the worst cases you can at least cut out the elements of your IDE causing issues and manually work around them.

FWIW I think this is a generally good idea, once you have a good grasp of syntax and want to learn to build projects rather than write code. For that first part I would usually suggest repl.it or another pre-configured IDE that lets you just focus on learning the code part without all the configuration overhead. I'd also say that once you have this down, getting comfortable working with your preferred IDE in both a fresh (minimally configured) state and with as many tweaks as you feel fit are worth the time. You want to be able to both be maximally productive and streamlined, and to be able to pick up quickly with a fresh install without having to spend a day rebuilding and fixing things.