推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
yumourenzaici
V2EX  ›  Python

菜鸡学 Python 用 sublime 插件问题。

  •  
  •   yumourenzaici · Aug 24, 2017 via iPhone · 3889 views
    This topic created in 3261 days ago, the information mentioned may be changed or developed.
    anaconda 和 SublimeCodeIntel 在 mac 无法正常工作

    我也按照网上教程把路径什么的都设置好了

    .codeintel/config 文件夹


    然后 which python 找到路径,并替换下面代码的路径

    {
    "Python": {
    "python":'D:/Program Files/Python26/python.exe',
    "pythonExtraPaths": ['D:/ProgramFiles/Python26',
    'D:/ProgramFiles/Python26/DLLs',
    'D:/ProgramFiles/Python26/Lib',
    'D:/Program Files/Python26/Lib/plat-win',
    'D:/ProgramFiles/Python26/Lib/libtk',
    'D:/Program Files/Python26/Lib/site-packages']
    }
    }


    还是没有反应。代码里面有一个 Dlls 的文件夹,但是 mac 版的 python 没有这个。

    刚刚问了有人说是因为 mac 读不到 path,需要单独配置解释器路径


    到底要怎么弄列,原谅菜鸡问题多ớ ₃ờ!
    23 replies    2017-09-14 21:39:46 +08:00
    shuizhengqi
        1
    shuizhengqi  
       Aug 24, 2017
    ?你这到底是 windows 还是 Mac,如果是 Mac 的话地址为什么是 D:/
    yumourenzaici
        2
    yumourenzaici  
    OP
       Aug 24, 2017
    @shuizhengqi 当然是 MAC,我上面写的是替换了下面的代码路径。因为不在家,所以不记得路径是什么了^_^!!

    到底是哪里处了问题呀
    laoyuan
        3
    laoyuan  
       Aug 24, 2017
    我还是习惯 Sublime 里写,命令行里跑
    ivechan
        4
    ivechan  
       Aug 24, 2017
    anaconda 和 SublimeCodeIntel 两者功能不是差不多的吗?为什么要装两个?
    可能会冲突吧。
    只装 anaconda 试试,然后不要配置,默认配置先试试能不能 run 起来。
    ivechan
        5
    ivechan  
       Aug 24, 2017
    #3 说的有道理的,sublime 基本没有调试能力,如果要一个能调试的编辑器还是推荐 VS Code。
    不过比 sublime 肿一点。
    yumourenzaici
        6
    yumourenzaici  
    OP
       Aug 24, 2017
    @ivechan 我是一个一个试的,anaconda 配置了也是失效的,我才试 SublimeCodeIntel,结果也是失效的,我在 windows 运行都是正常的。

    Jedi Python AutoComplete 倒是不用配置,但是补全没有 SublimeCodeIntel 好用。

    anaconda 可以用 command +b Run,但是没有代码补全和白色提示框,按到网上的教程设置了也不行。

    头大
    yumourenzaici
        7
    yumourenzaici  
    OP
       Aug 24, 2017
    @ivechan 3 楼的意思就是在 sublime 把代码写好了,复制到命令行运行吗?
    ivechan
        8
    ivechan  
       Aug 24, 2017
    @yumourenzaici 保存到文件,然后命令行执行 python + 文件名。
    然后,我还是建议你先不要配置 anaconda,据我经验,不用配置也是可以用的。
    你配置的话,不了解的话容易出错。
    另外, 你在 mac 下配置的话, 不要参考 Windows 下的教程。
    ayang23
        10
    ayang23  
       Aug 24, 2017
    SublimeCodeIntel 的补全很好,但经常导致 sublime 整个卡死,早就不用了
    yumourenzaici
        11
    yumourenzaici  
    OP
       Aug 24, 2017
    @ivechan 感谢耐心的指导,我回去试试看,不行,就用 Jedi Python AutoComplete 凑合用着,等学习知识多了,应该就知道是哪里的问题了。
    yumourenzaici
        12
    yumourenzaici  
    OP
       Aug 24, 2017
    @hanbaobao2005 原来要科技上网,是说进不去了。。谢谢拉
    ilotuo
        14
    ilotuo  
       Aug 24, 2017
    我装的 anaconda 也毛病很多. 用着用着会有个 python 进程跑满 cpu. 要手动关掉. 但是只在比较复杂的代码文件中会发生. 相当蛋疼.
    HarrisonZ
        15
    HarrisonZ  
       Aug 24, 2017
    直接用 pycharm 吧,你是学 pythone 的,又不是研究编辑器的
    yumourenzaici
        16
    yumourenzaici  
    OP
       Aug 24, 2017 via iPhone
    感谢各位帮助我
    veightz
        17
    veightz  
       Aug 24, 2017
    买了个 CodeRunner 用的很开心。。
    yumourenzaici
        18
    yumourenzaici  
    OP
       Aug 24, 2017
    @veightz 这个好像不能用交互吧,还是说我没研究出来呀。
    shiroming
        19
    shiroming  
       Aug 24, 2017 via Android
    别折腾了 装个 pycharm 妥妥的
    yumourenzaici
        20
    yumourenzaici  
    OP
       Aug 24, 2017
    @HarrisonZ 谢谢,我也不折腾了,就用 pycharm
    yumourenzaici
        21
    yumourenzaici  
    OP
       Aug 24, 2017
    @shiroming 就用 pycharm 专业版多少钱
    shiroming
        22
    shiroming  
       Aug 24, 2017 via Android
    @yumourenzaici 学生的话免费,需要 edu 邮箱,注册学生包。也有激活服务器。不写 django 或者只运行程序的话 可以用社区版免费,前几天好像 django 支持也要加入社区版了。
    whx20202
        23
    whx20202  
       Sep 14, 2017
    楼主解决了吗 我也用 jedi anaconda 都不能自动补全
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4876 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 04:02 · PVG 12:02 · LAX 21:02 · JFK 00:02
    ♥ Do have faith in what you're doing.