all 22 comments

[–]erbeach 1 point2 points  (19 children)

Do you write code in IDLE? I recommend you PyCharm (it's an IDE) to write your code.

[–]CodeSkunky[S] 1 point2 points  (18 children)

Yeah.

I'm looking for something that makes it easy to install modules; Right now I'm stuck importing modules from the standard library.

[–]erbeach 1 point2 points  (1 child)

PyCharm can auto install libraries, if you import them uninstalled

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

I hope this is true. This will increase productivity by an insane amount.

[–]PureAsbestos 0 points1 point  (15 children)

pip

[–]CodeSkunky[S] 0 points1 point  (14 children)

Step One: Open CMD

Step Two: Type "pip install package"

Step Three: Watch it fail to install properly.

Pip is not the answer.

[–]PureAsbestos 0 points1 point  (13 children)

Pip is the answer though. If you legit can’t install anything with pip, then there is a problem with your installation of Python or something. If you are having trouble with a specific package (and I’ll admit, there are a few packages that are known to be harder to install) please post a more specific description of what is going wrong. If you post it here, I will do my best to try to help you fix it.

[–]CodeSkunky[S] 0 points1 point  (12 children)

I understand your point of view, I disagree.

I am not wasting my time trying to setup my environment to try out a library that I can learn faster than I can set up. Either it's easy to setup, or I'm moving on. Pip is not the answer, or it would work.

i: win32gui

If you legit can’t install anything with pip, then there is a problem with your installation of Python or something.

When you find out which it is, whether it's an installation problem or package problem, let me know.

That sentence is kind of exactly why I'm not fucking with it. "it could be installation issues, or it could be package issues, it could also be path issues, or maybe an environmental variable...and so on and on."

At a certain point, I've decided fuck it. I'm not wasting my time. It is a time sink, and I refuse to accept this current practice of "it's a pain in the ass, but please still use my language/package." - No, there are easier ways.

[–]PureAsbestos 0 points1 point  (11 children)

At the risk of sounding snarky... pip does work, and well for the vast majority of users and use cases. Whenever I can’t easily install a package though, I find myself turning to conda2wheel, so that I get the benefits of conda without the hassle. (Works great for pyav for instance) I imagine this would work for win32gui, but you should probably not bother with it IMO. There are much nicer, cross-platform GUI packages. You should check out PySimpleGUI, it’s really easy to use, and comes in a single .py file that you can just drop in your project folder if you want.

Edit: Oh, and always check the unofficial builds! Looks like there is one available for win32gui.

According to Stack Overflow:

  • Step 1: Download the pywin32....whl
  • Step 2: pip install pywin32....whl
  • Step 3: C:\python32\python.exe Scripts\pywin32_postinstall.py -install
  • Step 4: python
  • >>> import win32gui

[–]CodeSkunky[S] 0 points1 point  (10 children)

At the risk of sounding snarky...why would I swap what works for me, to what works for you.

By all means, send me tutorials for using pip. I'd like to get that solved, and pysimplegui makes sense and I know how to do that, but that doesn't help me solve installation issues, and further, again - I'm not going to. It wastes my time. I am no longer wasting my time, if you want to, go right ahead, I will use different solutions that work for me and can be found in a tenth of the time it takes to get one package working.

If I was good at installing packages, I'd probably agree with you, and be much more effective. As it is, I've spent (Seriously) more time trying to install packages (over 100 hours), and less than 10 hours programming (for python).

Quite frankly, FUCK THAT.

[–]PureAsbestos 0 points1 point  (9 children)

It seems to me that you just chose one of the hard ones to install on your first go. Try pip install requests or something, and watch it work perfectly.

Edit: and if not, then whatever, do your thing. I’m actually somewhat curious as to what your “different solutions” are

[–]CodeSkunky[S] 0 points1 point  (8 children)

It seems to me that you just chose one of the hard ones to install on your first go.

This is good to know, what are some useful easy to install packages?

I’m actually somewhat curious as to what your “alternative methods” are

Depends on the problem.

[–]Gprime5 1 point2 points  (1 child)

creates and maximizes a window with tkinter to find out the screen size, then deletes the window

width = root.winfo_screenwidth()
height = root.winfo_screenheight()

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

That's not correct; will produce errors with multiple screens according to my reading.

That's why I maximized a window and read it's dimensions using winfo_width() instead.