想用用 Python 3 也是挺难的

2014-11-26 19:58:19 +08:00
 caizixian
Ubuntu、OS X自带的默认Python版本应该都是2.7.*,平常想用Python 3开发,只能一个个输python3 xxxx
想把默认的Python换成3的话,几乎是不可能的,因为系统内的很多东西都要用到Python 2。
用Python 3时还要安装python3-pip然后再用pip3命令,也是挺麻烦的。
真不知道什么时候才能抛开包袱,全面换用Python 3呢?
4342 次点击
所在节点    Python
29 条回复
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
ryd994
2014-11-28 03:43:26 +08:00
@aaaa007cn
让你在Windows下开发Linux工具23333333
Linux用户之间tar打包完全没这问题
NCE
2014-11-28 09:10:54 +08:00
python3 就是跳不过的坎,python已经完全碎片化了,win/osx/linux上写跑好纠结。

准备看看ruby了。
NCE
2014-11-28 09:12:04 +08:00
从来没见过一门语言有那么多坑,即使asp也没这么乱。明明是有自己组织的,反而比没组织的语言还乱。
hbin
2014-11-28 10:44:25 +08:00
@ChiangDi pyenv
c4pt0r
2014-11-28 10:50:54 +08:00
arch 最讨厌了. 每次装完系统都得手动降级一下 python
aaaa007cn
2014-11-28 22:09:21 +08:00
@ryd994
好在还有 git update-index --chmod=+x
octoberzhu
2014-11-29 02:22:06 +08:00
是啊,每次都要打python3,pip3
Kabie
2014-11-29 10:03:41 +08:00
...用 Python3 都快5年了……不知道你们怎么这么矫情。。。

赶快用 Arch 吧……

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/149512

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX