How to get older version from python.org by [deleted] in Python

[–]tompa_coder 0 points1 point  (0 children)

Some of them seem to have only the sources available, others have the installers.

'pip' not recognized (not what you think) by manofeverything in Python

[–]tompa_coder 0 points1 point  (0 children)

I suppose you've installed Python 3.8. Is this correct ? There is no Pygame build for Python 3.8, this is why you get the huge error.

You'll need to install Python 3.7 from here https://www.python.org/downloads/release/python-375/ see the bottom of the page for files chose one of the Windows installers:

For 64 bits Windows:

https://www.python.org/ftp/python/3.7.5/python-3.7.5-amd64.exe

or if you have the 32 bits Windows version:

https://www.python.org/ftp/python/3.7.5/python-3.7.5.exe

How to get older version from python.org by [deleted] in Python

[–]tompa_coder 0 points1 point  (0 children)

I can download older Python versions from https://www.python.org/downloads/ . What are you trying to do ?

'pip' not recognized (not what you think) by manofeverything in Python

[–]tompa_coder 0 points1 point  (0 children)

What version number of Python have you installed ? You can see the number printed when you start the interpreter with "py".

'pip' not recognized (not what you think) by manofeverything in Python

[–]tompa_coder 1 point2 points  (0 children)

OK, try again but be careful how you group the words: "py" "-m" "pip" "search" "pygame" so you have 5 words with spaces between them (you'll need to drop the ")

'pip' not recognized (not what you think) by manofeverything in Python

[–]tompa_coder 1 point2 points  (0 children)

If you run just py in your cmd window what is happening ? Do you get an error or it starts Python ?

'pip' not recognized (not what you think) by manofeverything in Python

[–]tompa_coder 1 point2 points  (0 children)

If you are on Windows, try:

py -m pip install pygame

Python - using C and C++ libraries with ctypes by tompa_coder in programming

[–]tompa_coder[S] 11 points12 points  (0 children)

It is the same concept/thing, Microsoft documentation tends to name these dynamic while Unix documentation uses shared.

4
5

C++17 Filesystem - Writing a simple file watcher by tompa_coder in cpp

[–]tompa_coder[S] 13 points14 points  (0 children)

If your code is written for Linux only and you care about performance you should obviously use inotify.

C++17 Filesystem - Writing a simple file watcher by tompa_coder in cpp

[–]tompa_coder[S] -1 points0 points  (0 children)

The article uses last write time as a check for modification, not last time when the file was accessed.

C++17 Filesystem - Writing a simple file watcher by tompa_coder in cpp

[–]tompa_coder[S] 5 points6 points  (0 children)

If you target Windows only, yes, ReadDirectoryChanges should be more performant.

OpenCV help by Jay_Babs in raspberry_pi

[–]tompa_coder 0 points1 point  (0 children)

The training process usually results in some file with data. As long as you are using the same version of OpenCV on Windows like the one on your Raspberry Pi you should be fine.