Xcode builds a Python compiling environment and xcode builds python

Source: Internet
Author: User

Xcode builds a Python compiling environment and xcode builds python
Build a Python compiling environment using Xcode

zx:~ zx$ which python/usr/bin/python

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

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

4. Create a test. py file, and enter

print "hello,world";

5. In EditScheme, you need to do three things after selecting Run:

In 5.1 Info, select Debug for BuildConfiguration; select/usr/bin/python for Executable; uncheck "Debug Executable"

5.2 Add the file name "test. py" to the startup parameter in Arguments"

5.3 Options, select the custom Directory under the Working Directory, and select the Directory where test. py is located.

Reference: https://www.youtube.com/watch? V = d6VRvLjcPfU

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.