• Cent OS 7安装python3


    安装环境依赖

    yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel  mysql-devel gcc gcc-devel python-devel

    下载python3

    wget "https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz"
    

     

    安装python3

    tar -zxvf Python-3.6.4.tgz 
    
    mkdir /usr/local/python3
    
    Python-3.6.4/configure --prefix=/usr/local/python3
    
    make && make install

    建立链接

    ln -s /usr/local/python3/bin/python3 /usr/bin/python3

    安装pip3 和 virtualenv

    ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
    pip3 install virtualenv
    ln -s /usr/local/python3/bin/virtualenv /usr/bin/virtualenv
    virutalenv -p /usr/bin/python3 imooc_env

    设置共享文件夹

    mkdir -p /media/cdrom
    mount /dev/sr0 /media/cdrom
    cd /media/cdrom

    cp -R /media/cdrom /usr/local/src/VBoxAdditions
    
    yum install -y gcc gcc-devel gcc-c++ gcc-c++-devel make kernel kernel-devel bzip2

     

    #重启
    shutdown -r now
    #安装增强工具 
    /usr/local/src/VBoxAdditions/VBoxLinuxAdditions.run install

    挂载共享文件夹

    #切换到root用户输入挂载命令:
    sudo mount -t vboxsf shared_file /home/food
    shared_file为共享文件夹名称(在设置页面设置的) 挂载的目录

     

  • 相关阅读:
    每日一(水)题
    操作树学习笔记
    「THUSCH 2017」大魔法师
    几个规律
    DP专题(DP进阶题单 )
    康托展开&逆康托展开
    一道题目
    P5629 【AFOI-19】区间与除法 题解
    留言板
    NOIP2020考试总结
  • 原文地址:https://www.cnblogs.com/xiao-apple36/p/12326990.html
Copyright © 2020-2023  润新知