Skip to content

Commit 50d8fef

Browse files
author
wangningning
committed
add pyenv
1 parent 0a251a9 commit 50d8fef

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

memo/memo.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,17 @@ Python
1212
python3.4 -m http.server
1313
python -m SimpleHTTPServer # python2
1414
15-
python -u # 刷新缓冲,执行脚本重定向结果到文件时候比较有用
15+
python -u script.py # 刷新缓冲,执行脚本重定向结果到文件时候比较有用
1616
1717
# logging
1818
FATAL(50) > ERROR(40) > WARNING(30) > INFO(20) > DEBUG(10)
1919
2020
# 使用virtualenv制定python版本
2121
virtualenv -p /usr/bin/python2.7 ENV2.7
2222
23+
# pyenv 安装多个版本的 python : https://github.com/pyenv/pyenv
24+
# pyenv-virtualenv https://github.com/pyenv/pyenv-virtualenv
25+
2326
2427
Mac
2528
---------------------------------------------------------------
@@ -298,6 +301,10 @@ vim
298301
jfswatch -o ~/path/to/watch | xargs -n1 ~/script/to/run/when/files/change.sh
299302
fswatch -o ./*.py | xargs -n1 ./runtest.sh # 比如写单元测试的时候修改后就让测试执行
300303
304+
# 也可以使用下边的工具用 Jupyter 做 slideshow,最大的特点是直接在浏览器里敲代码交互演示
305+
# Reveal.js - Jupyter/IPython Slideshow Extension, also known as live_reveal
306+
# https://github.com/damianavila/RISE
307+
301308
Benchmark
302309
-------------------------------------------------------------
303310

0 commit comments

Comments
 (0)