E
E
Evgeny Kolesov2018-08-07 11:29:44
Python
Evgeny Kolesov, 2018-08-07 11:29:44

How to run a module on Windows?

Such a question, I have a text document with the .ru extension, and the code inside (at the moment a calculator.) But that’s not the point, on Linux I wrote the path to the file through the command line and everything opened and worked.
On Windows (it costs 7), nothing happens when you double-click. I tried to import the file or specify the full path to the file, it does not give an error, but nothing happens. Although with the same code and actions on Linux, a window opened and the application worked. The question is what's wrong?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
F
Fixid, 2018-08-07
@Fixid

Compile to .exe

K
kalapanga, 2018-08-07
@kalapanga

How to run the script?

A
Artem @Jump, 2018-08-07
curated by the

Probably a script for Linux, and not for Windows, so no way, except to rewrite it.

Although with the same code and actions on Linux, a window opened and the application worked. The question is what's wrong?
What graphic library is used there?
Are you sure that it is in Windows?

R
res2001, 2018-08-07
@res2001

Perhaps python is not installed in Windows, or when installing python, file associations were not registered, or they flew off already in the process.
In general, run like this:
Python, of course, must be installed, and the correct version: python2x is not compatible with python3x.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question