V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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
22 replies    2017-12-21 15:09:38 +08:00
p2pCoder
    1
p2pCoder  
   Dec 20, 2017
正在学 dash
congeec
    2
congeec  
   Dec 20, 2017
对这种 10 大我表示不认同。完全是搞 data science 一小部分用户的主观臆断

flashtext 刚出来怎么就 10 大了? aho-corasick 算法早就有了,flashtext 只是印度阿三会营销而已
pipenv 和 pyenv 一起用有 bug
就算专注 data science, keras 应该算一个吧?
est
    3
est  
OP
   Dec 20, 2017
@congeec 因为标题限制是 2017 年啊。。有一些老的包可能 2016 2015 就已经登 top 10 了。
kaka826
    4
kaka826  
   Dec 20, 2017
dash 不错
Kilerd
    5
Kilerd  
   Dec 20, 2017
我感觉 pipenv 不如 pyenv + virtualenv 舒服
ivechan
    6
ivechan  
   Dec 20, 2017
我用 pipenv 的时候, 好像只能从系统或者已有的 Python 里创建虚拟环境,
比如我是 Python3.5, 就没有 Python3.6 给我用. 是我的问题?还是 pipenv 本来就这样?
后来我就换 miniconda 了.

PyTorch 我很喜欢, 非常好地 imperative 的深度学习框架.
tensorflow 和 keras 这种静态编译的, 其实跟 Python 本身关系不大. 你甚至写个循环都不能用关键字 for.

caffe2 一直没有 binary 版本, 只有在 docker 里用, 等到 1.0 release 再看吧..

发现一个 dash, 感觉不错, 去看看
GreatMartial
    7
GreatMartial  
   Dec 20, 2017 via Android
能否用 dash,自己搞一个图表产品提供给细分行业使用呢?😃
est
    8
est  
OP
   Dec 20, 2017
@GreatMartial 如何给汽车喷漆从来都不是制造一辆高性能汽车最麻烦的步骤。
mpich
    9
mpich  
   Dec 20, 2017   ❤️ 1
惊了,我居然全用过。
est
    10
est  
OP
   Dec 20, 2017
@mpich 说出你的故事。
corningsun
    11
corningsun  
   Dec 20, 2017
pendulum 可以尝试下
janxin
    12
janxin  
   Dec 20, 2017   ❤️ 1
我是在用 pyenv+pipenv,表示没什么问题。因为 pyenv 设置全局变量默认 3 了,所以默认创建就是 3.6.3 的环境。想用 2.7.14 就加个--two,不知道楼上遇到的 bug 是什么样子的?
congeec
    13
congeec  
   Dec 20, 2017
@janxin

```
~/bokeh.test $ pyenv which python
/home/congee/.pyenv/versions/miniconda3-latest/bin/python
~/bokeh.test $ python --version
Python 3.6.3 :: Intel Corporation
~/bokeh.test $ pipenv run python --version
Creating a virtualenv for this project …
⠋Using base prefix '/usr'
New python executable in /home/congee/.local/share/virtualenvs/bokeh.test-HkIV9wVR/bin/python
Installing setuptools, pip, wheel...done.

Virtualenv location: /home/congee/.local/share/virtualenvs/bokeh.test-HkIV9wVR
Python 3.6.3
~/bokeh.test $ cat .python-version
miniconda3-latest
```

用 pyenv switch 到 intel python, 但是 pipenv 检测到的是 system python
我也懒得 debug 提 issue,凑合着用吧
janxin
    14
janxin  
   Dec 20, 2017
@congeec 哦,这个是因为 pipenv 会有个默认 Python 版本...这个情况只能用--python 指定版本了
Alan1312
    15
Alan1312  
   Dec 20, 2017
@ivechan #6 pipenv 可以和 pyenv 联动, 然后用 --python 指定版本, pyenv 里面也没有的话, 就会询问是否用 pyenv 安装
cppgohan
    16
cppgohan  
   Dec 20, 2017
之前用 virtualenv, 现在用 conda... 不知道 pipenv 相比 conda, 有什么优点?
l1093178
    17
l1093178  
   Dec 21, 2017
pendulum 还是挺好用的,可以说是超级增强版 datetime
congeec
    18
congeec  
   Dec 21, 2017 via iPhone
@janxin --Python 指定版本也没用
ImPerat0R
    19
ImPerat0R  
   Dec 21, 2017 via Android
pendulum 模仿了 php 的 carbon
janxin
    20
janxin  
   Dec 21, 2017
@congeec 我这里没问题的,可能是其他的配置问题影响的

$ pyenv version
3.6.4 (set by PYENV_VERSION environment variable)

$ pipenv shell --python 3.5.4
Creating a virtualenv for this project …
Using /Users/USER/.pyenv/versions/3.5.4/bin/python3.5m to create virtualenv …
⠋Running virtualenv with interpreter /Users/USER/.pyenv/versions/3.5.4/bin/python3.5m
Using base prefix '/Users/USER/.pyenv/versions/3.5.4'
New python executable in /Users/USER/.local/share/virtualenvs/Desktop-43TPCkMe/bin/python3.5m
Also creating executable in /Users/USER/.local/share/virtualenvs/Desktop-43TPCkMe/bin/python
Installing setuptools, pip, wheel...done.

Virtualenv location: /Users/USER/.local/share/virtualenvs/Desktop-43TPCkMe
Spawning environment shell (/bin/zsh). Use 'exit' to leave.
source /Users/USER/.local/share/virtualenvs/Desktop-43TPCkMe/bin/activate
hooopo
    21
hooopo  
   Dec 21, 2017
python v5
qsnow6
    22
qsnow6  
   Dec 21, 2017
fire 还不错,无需改动代码就拥有一个可以在命令行交互的工具;不过相比 click 来说,可玩性少了些
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2964 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 117ms · UTC 08:41 · PVG 16:41 · LAX 01:41 · JFK 04:41
♥ Do have faith in what you're doing.