亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

Python各種開發(fā)環(huán)境搭建

original 2016-11-08 10:13:58 388
abstrait:1、pyenv   安裝地址  https://github.com/yyuu/pyenv-installer curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bashand remove these three lines from

1、pyenv   安裝

地址  https://github.com/yyuu/pyenv-installer

 curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash

and remove these three lines from .bashrc

export PATH="~/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

2、安裝Python

[root@ipython ~]# pyenv install 3.5.2   安裝Python3.5.2版本

默認(rèn)該過程很慢,解決辦法如下 下載Python3.5.2版本

放到~/.pyenv/cache目錄即可。修改~/.pyenv/plugins/python-build/share/python-build/3.5.2文件

[root@ipython ~]# cd .pyenv/plugins/python-build/share/python-build/
[root@ipython python-build]# vim 3.5.2
 
#require_gcc
install_package "openssl-1.0.2g" "https://www.openssl.org/source/openssl-1.0.2g.tar.gz#b784b1b3907ce39abf4098702dade6365522a253ad1552e267a9a0e89594aa33" mac_openssl --if has_broken_mac_openssl
install_package "readline-6.3" "https://ftpmirror.gnu.org/readline/readline-6.3.tar.gz#56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43" standard --if has_broken_mac_readline
if has_tar_xz_support; then
  install_package "Python-3.5.2" "~/.pyenv/cache/Python-3.5.2.tar.gz" ldflags_dirs standard verify_py35 ensurepip
else
  install_package "Python-3.5.2" "~/.pyenv/cache/Python-3.5.2.tar.gz" ldflags_dirs standard verify_py35 ensurepip
fi
 
 
[root@ipython ~]# pyenv versions
  system
* 3.5.2 (set by /root/.python-version)
[root@ipython ~]# 
[root@ipython ~]# pyenv local 3.5.2
[root@ipython ~]# 
[root@ipython ~]# python -V
Python 3.5.2
[root@ipython ~]# python 
Python 3.5.2 (default, Nov  5 2016, 20:24:14) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-16)] on linux
Type "help", "copyright", "credits" or "license" for more information.

892670031-581ee02140c15_articlex.png

3、安裝ipython

[root@ipython ~]# mkdir ~/.pip
[root@ipython .pip]# cat pip.conf 
[global]
timeout = 6000
index-url = http://mirrors.aliyun.com/pypi/simple/
trusted-host = mirrors.aliyun.com
 
[root@ipython ~]# pip install --upgrade pip
[root@ipython ~]# pip install ipython
[root@ipython ~]# ipython

892670031-581ee02140c15_articlex.png

4、安裝jupyter

[root@ipython ~]# pip install jupyter 


[root@ipython ~]# jupyter notebook --ip=172.16.80.128


打開瀏覽器訪問測(cè)試

892670031-581ee02140c15_articlex.png

5、pycharm  安裝配置過程略過,簡(jiǎn)單截圖如下

QQ圖片20161107163236.png

Notes de version

Entrées populaires