返回顶部
扩大
缩小
大江东去,浪淘尽,千古风流人物。故垒西边,人道是,三国周郎赤壁。乱石穿空,惊涛拍岸,卷起千堆雪。江山如画,一时多少豪杰。遥想公瑾当年,小乔初嫁了,雄姿英发。羽扇纶巾,谈笑间,樯橹灰飞烟灭。故国神游,多情应笑我,早生华发。人生如梦,一尊还酹江月。

python 环境配置

python环境安装:

windows:

下载地址:https://www.python.org/downloads

anaconda: https://www.continuum.io/downloads
        /
https://mirrors.tuna.tsinghua.edu.cn/anaconda/a川1ve

变量配置:
    C:\Python3 6
    C:\Python3 6\Scri pts
添加别名:
    python.exe复制一份,命名为python3.exe
    
测试:
    python3    

linux 安装:

命令安装、师、码安装和Anaconda安装
centos(python3.5):
    sudo yum install -y https://centos7.iuscommunity.org/ius-release.rpm 
    sudo yum update 
    sudo yum install y  python35u   python35u libs python35u-devel python35u-pip
      
ubuntu,debian,deepin:
    sudo apt-get install -y python3-dev build-essential libssl-dev lib干fi-devlibxml2 libxml2-dev libxsltl-dev zlib1g-dev libcurl4-openssl-dev 
    sudo apt-get install y  python3 
    sudo apt-get install -y python3-pip

源码安装:

sudo mkdir /usr/local/python3
wget --no-check-certificate https ://www.python.org/ftp/python/3.6.2/ Python-3.6.2.tgz 
tar xzvf Python-3.6.2.tgz 
cd Python-3.6.2         
sudo ./con干igure--prefix=/usr/local/python3 
sudo make 
sudo make instal   

安装完成之后,创建Python3链接:
    sudo ln -s /usr/local/python3/bin/python3 /usr/bin/python3

下载pip安装包并安装:
    wget...no-check-certificate https://github.com/pypa/pip/archive/9.0.1.tar.gz 
    tar -xzvf 9 . 0.1.tar.gz 
    cd pip-9. 0.1 python3 setup.py install
    安装完成后再创建pip3链接,相关命令如下:
    sudo ln -s /usr/local/python3/bin/pip /usr/bin/ pip3   
    
anaconda 安装:
    https://www.continuum.io/downloads (可以使用镜像)
    
测试:
    python3 

mac 安装:

    Hormebrew是Mac平台下强大的包管理工具,其官方网站是https:/.brew.sh
    ruby -e”$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/ master/install)” 
    安装完成后,便可以使用brew命令安装Python3和pip3了:
    brew install python3 

posted on 2020-09-28 10:20  晨星_star  阅读(207)  评论(0编辑  收藏  举报

导航