posfan12
posfan12

Reputation: 2651

Running or compiling a Python script on Windows

I want to modify this Python script on Windows 7.

https://github.com/Jeremy1980/LDBoxer

The original author seems to have compiled the program into a Windows executable. Is it possible to run the script without compiling it? I tried the following at the command prompt:

python LDBoxer.py

But Windows says it does not recognize 'python'. What do I need to install and what is the correct command line syntax? According to the docs, this is the correct way to run the executable:

LDBoxer_2017a.exe ldraw_library_location  ldraw_model_location_for_conversion

Thanks.

Upvotes: 1

Views: 435

Answers (1)

Jake
Jake

Reputation: 637

You need to make sure you have python installed, then make sure you are running the correct python compiling command. Sometimes when installing python 2 you need to run the command python2 or python27.

You can install python here. It looks like they wrote it with python 2.x so I would recommend installing python version 2.7 unless you want to manually convert it to python 3.x.

You should be able to run the .exe just by double clicking, or right click then run.

Upvotes: 2

Related Questions