![]() | 1 yakczh 2014-11-26 20:00:23 +08:00 在windows好不容易调好了python3的代码,上传到linux,竞然大部分主流版本都是python2.6 |
![]() | 3 ChiangDi 2014-11-26 20:07:16 +08:00 via Android python 应该有类似 Ruby 的 rvm 或者 rbenv 这样的工具吧 |
4 mengzhuo 2014-11-26 20:19:15 +08:00 via iPad Virtualenv 想用哪个版本就用哪个版本 |
![]() | 5 yopming 2014-11-26 20:21:10 +08:00 ![]() 开发的话要是不用docker、vagrant这种就要virtualenv吧 |
![]() | 6 kidlj 2014-11-26 20:25:49 +08:00 $ virtualenv --python=/usr/bin/python3.3 env |
![]() | 7 limbo0 2014-11-26 20:36:35 +08:00 alias python=python3 |
![]() | 8 limbo0 2014-11-26 20:37:47 +08:00 alias pip=pip3 |
9 caizixian OP |
![]() | 10 wolfan 2014-11-26 21:48:21 +08:00 via Android python分2/3最无爱了,而且中文教材基本还是2的,这是为什么呢? |
![]() | 11 2owe 2014-11-26 21:57:29 +08:00 所以写兼容 py2k 和 py3k 的代码成了主流 _(:3 |
12 ArchStacker 2014-11-26 22:01:43 +08:00 ![]() 为什么没人提ArchLinux,默认的python就是python3 |
![]() | 13 crossmaya 2014-11-27 15:57:52 +08:00 我是直接跳过python3了 |
![]() | 14 p8p8 2014-11-27 16:40:22 +08:00 用pyenv啊,我就用这个,超爽的,进了目录local一下,就行了。 |
16 kaneg 2014-11-27 20:37:35 +08:00 via iPhone 为什么一定要用Python3呢?是公司要求吗 |
![]() | 18 aaaa007cn 2014-11-27 22:32:50 +08:00 @ryd994 不过这还得先 chmod +x 啊…… 我现在也是这么做的 python 在 windows 下也有支持 shebang 的 py.exe https://www.python.org/dev/peps/pep-0397 |
![]() | 19 weizenkorn 2014-11-28 03:13:09 +08:00 可以安装这个 Anaconda Distribution。 |
![]() | 20 weizenkorn 2014-11-28 03:13:38 +08:00 接上条,忘了贴地址: http://continuum.io/downloads |
![]() | 21 weizenkorn 2014-11-28 03:17:18 +08:00 贴下官方的介绍,比较适合用来处理大数据,各种package十分好玩儿,自由切换版本。 * 195+ of the most popular Python packages for science, math, engineering, data analysis * Completely free - including for commercial use and even redistribution Cross platform on Linux, Windows, Mac * Installs into a single directory and doesn't affect other Python installations on your system. Doesn't require root or local administrator privileges * Stay up-to-date by easily updating packages from our free, online repository * Easily switch between Python 2.6, 2.7, 3.3, 3.4, and experiment with multiple versions of libraries, using our conda package manager and its great support for virtual environments * Comes with tools to connect and integrate with Excel |
![]() | 22 ryd994 2014-11-28 03:43:26 +08:00 via Android |
![]() | 23 NCE 2014-11-28 09:10:54 +08:00 python3 就是跳不过的坎,python已经完全碎片化了,win/osx/linux上写跑好纠结。 准备看看ruby了。 |
![]() | 24 NCE 2014-11-28 09:12:04 +08:00 从来没见过一门语言有那么多坑,即使asp也没这么乱。明明是有自己组织的,反而比没组织的语言还乱。 |
![]() | 26 c4pt0r 2014-11-28 10:50:54 +08:00 arch 最讨厌了. 每次装完系统都得手动降级一下 python |
![]() | 28 octoberzhu 2014-11-29 02:22:06 +08:00 是啊,每次都要打python3,pip3 |
29 Kabie 2014-11-29 10:03:41 +08:00 ...用 Python3 都快5年了……不知道你们怎么这么矫情。。。 赶快用 Arch 吧…… |