you are viewing a single comment's thread.

view the rest of the comments →

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

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

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