推荐学习书目
› 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
sadhen
V2EX  ›  Python

数据分析和机器学习用 Python 2 还是 Python 3

  •  
  •   sadhen ·
    darcy-shen · Apr 21, 2017 · 8132 views
    This topic created in 3484 days ago, the information mentioned may be changed or developed.
    主要用 scikit-learn, matplotlib, tensorflow 等,不知道用 Python 3 有没有什么坑?
    21 replies  •  2017-04-26 13:05:05 +08:00
    rocksolid
    rocksolid
    Apr 21, 2017❤️1
    1
    没什么好纠结的 反正都得用,用 virtualenv 隔开
    upczww
    upczww
    Apr 21, 2017 via iPhone
    2
    我也用上面那些库,没有坑,直接用 Python 3 吧。
    Nanguage
    Nanguage
    Apr 21, 2017
    3
    表示3目前没碰到坑,反倒是2在可视化的时候会有编码上的问题
    yech1990
    yech1990
    Apr 21, 2017 via Android
    4
    3 。

    现在是 2017 年了。
    IanPeverell
    IanPeverell
    Apr 21, 2017
    5
    现在该问,用 python2 有没有什么坑了
    crayygy
    crayygy
    Apr 21, 2017 via iPhone
    6
    毫无疑问 3
    fy
    fy
    Apr 21, 2017
    7
    你看 anaconda , 3 的下载在 2 顶上,计算的坑应该填平了才会这样的吧
    eloah
    eloah
    Apr 21, 2017
    8
    无论做什么都应该优先用 3 吧......
    sadhen
    sadhen
    OP
    Apr 21, 2017
    9
    同事对 Python 3 有些刻板的印象,他觉得 3 会有些坑,比如有些软件包 2 能有,但是 3 有问题

    看来我得让他拿出例子
    verydxz
    verydxz
    Apr 21, 2017
    10
    pipenv
    ToughGuy
    ToughGuy
    Apr 21, 2017
    11
    @sadhen

    有些人是听风就是雨, 新项目放心用 3.
    cqcn1991
    cqcn1991
    Apr 21, 2017 via iPhone
    12
    如果是 2 年前,用 2 。现在,用 3
    gpw1987
    gpw1987
    Apr 21, 2017
    13
    py3 ,现在 2 已经逐渐退出了
    guolingbing
    guolingbing
    Apr 21, 2017
    14
    现在还是用 3 吧, python2 最大的坑应该就是编码了,有时候会遇到很多奇怪的问题,特别是在处理中文的时候;
    swordspoet
    swordspoet
    Apr 21, 2017
    15
    @guolingbing Python2 的中文编码简直不能忍,太恶心了
    guokeke
    guokeke
    Apr 21, 2017
    16
    3
    fulvaz
    fulvaz
    Apr 21, 2017
    17
    额。两个都是要知道点的,有些旧算法旧库用 pyhthon2
    freestyle
    freestyle
    Apr 24, 2017
    18
    ipython 最新版都放弃 Python2 了
    sadhen
    sadhen
    OP
    Apr 24, 2017
    19
    @freestyle 可以看这里: http://www.python3statement.org/

    Python 3 宣言
    chisoco
    chisoco
    Apr 25, 2017
    20
    python3 吧, py2 有时候还有中文编码问题
    onelove
    onelove
    Apr 26, 2017
    21
    python2 的编码问题搞的我很烦,现在开始尝试 python3 了。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2053 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 69ms · UTC 16:25 · PVG 00:25 · LAX 08:25 · JFK 11:25
    ♥ Do have faith in what you're doing.