Question

When tools such as cx_freeze tell you to use a command such as "python setup.py build", where is this command issued? I have tried both the python command line and the Windows command prompt, but neither one worked with inputting that phrase.

Était-ce utile?

La solution

Here is what :

  1. This goes on the windows command prompt.
  2. You first need to cd to the directory where your setup.py is situated.

For Eg: C:\folder\setup.py

On the command prompt :

  • C:\

  • cd folder

  • python setup.py build

Now, this will call python and pass the file setup.py and asks to build it.

Autres conseils

You issue such commands from the command prompt. You should make sure that you've changed into the directory containing setup.py before typing the command.

It works from your shell or command prompt, but it assumes that you have followed the appropriate guide(s) for generating a setup.py file for your code.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top