python 3.6 环境设置

2420阅读 0评论2018-12-28 chinaboywg
分类:系统运维

ln -s /usr/bin/python3.6.4/bin/python3 /usr/bin/python3

vi /etc/profile
PATH=$PATH:$HOME/bin:/usr/local/python3/bin

source  /etc/profile


pip3 install  requests
python3
>>>
import requests


文件中
#! /usr/bin/env python3
import requests
上一篇:free命令(buffer与cache区别)
下一篇:python3使用requests模块完成get/post/代理/自定义header/自定义Cookie