1
yakczh 2014 年 11 月 26 日
在windows好不容易调好了python3的代码,上传到linux,竞然大部分主流版本都是python2.6
|
3
ChiangDi 2014 年 11 月 26 日 via Android
python 应该有类似 Ruby 的 rvm 或者 rbenv 这样的工具吧
|
4
mengzhuo 2014 年 11 月 26 日 via iPad
Virtualenv 想用哪个版本就用哪个版本
|
5
yopming 2014 年 11 月 26 日 开发的话要是不用docker、vagrant这种就要virtualenv吧
|
6
kidlj 2014 年 11 月 26 日
$ virtualenv --python=/usr/bin/python3.3 env
|
7
limbo0 2014 年 11 月 26 日
alias python=python3
|
8
limbo0 2014 年 11 月 26 日
alias pip=pip3
|
9
caizixian OP |
10
wolfan 2014 年 11 月 26 日 via Android
python分2/3最无爱了,而且中文教材基本还是2的,这是为什么呢?
|
11
2owe 2014 年 11 月 26 日
所以写兼容 py2k 和 py3k 的代码成了主流
_(:3 |
12
ArchStacker 2014 年 11 月 26 日 为什么没人提ArchLinux,默认的python就是python3
|
13
crossmaya 2014 年 11 月 27 日
我是直接跳过python3了
|
14
p8p8 2014 年 11 月 27 日
用pyenv啊,我就用这个,超爽的,进了目录local一下,就行了。
|
16
kaneg 2014 年 11 月 27 日 via iPhone
为什么一定要用Python3呢?是公司要求吗
|
18
aaaa007cn 2014 年 11 月 27 日
@ryd994
不过这还得先 chmod +x 啊…… 我现在也是这么做的 python 在 windows 下也有支持 shebang 的 py.exe https://www.python.org/dev/peps/pep-0397 |
19
weizenkorn 2014 年 11 月 28 日
可以安装这个 Anaconda Distribution。
|
20
weizenkorn 2014 年 11 月 28 日
接上条,忘了贴地址: http://continuum.io/downloads
|
21
weizenkorn 2014 年 11 月 28 日
贴下官方的介绍,比较适合用来处理大数据,各种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 |
23
NCE 2014 年 11 月 28 日
python3 就是跳不过的坎,python已经完全碎片化了,win/osx/linux上写跑好纠结。
准备看看ruby了。 |
24
NCE 2014 年 11 月 28 日
从来没见过一门语言有那么多坑,即使asp也没这么乱。明明是有自己组织的,反而比没组织的语言还乱。
|
26
c4pt0r 2014 年 11 月 28 日
arch 最讨厌了. 每次装完系统都得手动降级一下 python
|
28
octoberzhu 2014 年 11 月 29 日
是啊,每次都要打python3,pip3
|
29
Kabie 2014 年 11 月 29 日
...用 Python3 都快5年了……不知道你们怎么这么矫情。。。
赶快用 Arch 吧…… |