Using Python 3.1 with TextMate

前端 未结 4 1242
旧巷少年郎
旧巷少年郎 2020-12-04 16:14

TextMate seems to use the built-in Python version I assume (sys.path doesn\'t work). How do you configure it to use 3.1 instead? I\'ve already installed the 3.1 package and

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-04 16:28

    the shebang is the best solution, to see where python 3 is installed type in terminal:

    which python3

    you will get something like this:

    /usr/local/bin/python3

    if nothing shows up first install python3

    and at the top of your script insert:

    #!/usr/local/bin/python3

提交回复
热议问题