Some useful pyenv commands are:
commands List all available pyenv commands
local Set or show the local application-specific Python version
global Set or show the global Python version
shell Set or show the shell-specific Python version
install Install a Python version using python-build
uninstall Uninstall a specific Python version
rehash Rehash pyenv shims (run this after installing executables)
version Show the current Python version and its origin
versions List all Python versions available to pyenv
which Display the full path to an executable
whence List all Python versions that contain the given executable
1、配置国内镜像(pipe)
# mkdir ~/.pip
# vim ~/.pip/pip.conf
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
trusted-host = mirrors.aliyum.com
2、安装ipython
# pip install --upgrade pip #我这块提升要先安装这个
# pip install ipyton
# ipython #可以使用了
Python 3.5.2 (default, Jun 30 2016, 05:24:18)
Type "copyright", "credits" or "license" for more information.
IPython 4.2.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: print('hello world')
hello world
3、安装jupyter
# pip install jupyter
# # jupyter-notebook --ip=0.0.0.0 --port=8888 --no-browser #前台运行
[I 06:24:43.608 NotebookApp] Serving notebooks from local directory: /root
[I 06:24:43.609 NotebookApp] 0 active kernels
[I 06:24:43.609 NotebookApp] The Jupyter Notebook is running at: http://0.0.0.0:8888/
[I 06:24:43.609 NotebookApp] Use Control-C to stop this server and shut down all kernels
[I 06:24:58.443 NotebookApp] 302 GET / (192.168.110.253) 2.11ms
[I 06:25:26.260 NotebookApp] Creating new notebook in