Xcode builds a Python build environment

Source: Internet
Author: User

Xcode builds a Python build environment
    1. Confirm that the Python is installed
zx:~ zx$ which python/usr/bin/python

2. Open Xcode, create a new project, select "Other" | "Externail Building System".

3.BuildTool fill in "/usr/bin/python"

4. First build a test.py file, enter

print "hello,world";

In 5.EditScheme, there are three things to do when you check run:

5.1 Info, buildconfiguration select Debug; Executable Select/usr/bin/python file and uncheck "Debug executable"

5.2 Arguments, start parameter add filename "test.py"

5.3 Options, check the custom directory under working directory and select the directory where the test.py is located.

    1. Over, running can get hello,world.

Reference: Https://www.youtube.com/watch?v=d6VRvLjcPfU

Xcode builds a Python build environment

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.