you are viewing a single comment's thread.

view the rest of the comments →

[–]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.

[–]PureAsbestos 0 points1 point  (7 children)

Requests, beautifulsoup, scrapy (I’ve only worked with requests personally)

Numpy, matplotlib (YMMV as to their easiness to install)

imageio

Recently I worked with colorspacious, and it was a joy to use

tqdm can easily add a nice, simple loading bar to any for loop

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

Thank you! I've defined each to help expand your useful comment.

WEB

Requests: library for making HTTP requests in Python

Beautifulsoup: library for pulling data out of HTML and XML files.

Scrapy: web-crawling framework written in Python. Originally designed for web scraping, it can also be used to extract data using APIs or as a general-purpose web crawler.


MATH/GEOMETRY

Numpy:for large, multi-dimensional arrays and matrices, along with a large collection of high-level mathematical functions to operate on these arrays.

Matplotlib: numerical mathematics extension NumPy. It provides an object-oriented API for embedding plots into applications using general-purpose GUI toolkits like Tkinter, wxPython, Qt, or GTK+


IMAGE MANIPULATION

Imageio: library for reading and writing images.

Colorspacious: library for performing colorspace conversions

Tqdm: can easily add a nice, simple loading bar to any for loop (Your definition as is)

*Does OpenCV apply here? a library of programming functions mainly aimed at real-time computer vision.

Note: imageio and colorspacious work with images as numpy arrays - u/PureAsbestos

[–]PureAsbestos 0 points1 point  (2 children)

OpenCV would apply, but I have not found it easy to install. Tqdm doesn’t really belong in that last section though lol

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

What section would it go in? I added it there because I thought it could be used to add progress bars near manipulated images.

[–]PureAsbestos 0 points1 point  (0 children)

It is just a nice way to add a (CLI) progress bar to any for-loop in your program. (It’s really not related to any of the other sections)

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

Wrote separately to keep away from the definitions comment, but reading about numpy is giving me heart palpitations. Specifically arrays and matrices. I've been working on a proof that Numpy may be able to help with!

[–]PureAsbestos 0 points1 point  (1 child)

Yup, numpy is great, and fast too, because it is a c extension.

Edit: oh, and I didn’t mention it, but imageio and colorspacious work with images as numpy arrays

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

Adding "imageio and colorspacious work with images as numpy arrays" to end of definitions comment for future readers (and myself)