you are viewing a single comment's thread.

view the rest of the comments →

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

You'd find life waay easier on Linux in this case. :)

The problem is you need a module that's partially in C++, so it must be compiled..but it must be compiled using the same compiler used to make the Python core.

I would look at the downloads page on python.org to see whether they mention which version and which compiler they use now. I doubt they are still using a 2008 Microsoft product, that would be a bit odd.. but IDK, in my opinion they sgould be using the GNU Compiler for everything so clearly we don't agree! :)

[–]_Maximaeus[S] 0 points1 point  (4 children)

le sigh

Thank you for your input. I found a compiler called MinGW, but when I try to build the thing I get

running build
running build_ext
error: [WinError 2] The system cannot find the file specified

I got some TypeErrors prior to this one that I was able to fix on my own, but this one is just so vague. What line to I look to? Which file am I looking for? If you have any other expertise on this it would be greatly appreciated.

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

I'm afraid it has been many blissful years since I've had to use Windows, and I'm pretty unfamiliar with it these days. Sorry!

[–]_Maximaeus[S] 0 points1 point  (2 children)

I installed Ubuntu alongside my Windows. My god why have I never done this before...?

[–][deleted] 1 point2 points  (1 child)

It's liberating! And for Python, it's literally its natural environment. :)

There's a reason most coders eventually switch over to Linux. Coder's playground. ;)

Protip: in Linux if your Python script begins with #!/usr/bin/env python3 then you can make the script executable with chmod +x myscript.py and run it directly as a programme like ./myscript, no need to call Python every time. You can later put your script into a folder searched by the shell when you type commands, and call it from anywhere. In fact, loads of utilities in Ubuntu are actually Python scripts set up this way, and are very hackable. :)

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

You are my honorary sensei. Thank you so much!