Xcode for Python

Configurare noua (How To)

Situatie

Solutie

Pasi de urmat

 Install Python

You can download from Google or FireFox:

Ex:  https://www.python.org/downloads/

 Locate python

Where python3 reports/usr/local/bin/python3

Create project

File > New > Project > Cross-platform > External Build System > Next.

Enter a name (e.g. HelloPython). Click Next.

Navigate to whatever location you like, and click Create.

Create a Python file

Choose File > New, select macOS > Other > Empty. Click Next.

 

Entre a name (e.g. work.py). Make sure the “add to target Python” box is checked. Click Create.

 Edit your Run Scheme:

Choose the Executable:

Add Launch Arguments:

Click the Arguments tab. Click + under “Arguments Passed On Launch” and type $(SRCROOT)/Work.py

Testing with python code

Click Close to dismiss the scheme editor. Enter a program.

Thanks!

Tip solutie

Permanent

Voteaza

(9 din 16 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?