美文网首页Python入坑与埋坑
mac 开发Python常见命令使用

mac 开发Python常见命令使用

作者: 键盘上的演绎者 | 来源:发表于2020-03-27 10:16 被阅读0次

    查看文件

    sudo find / -name python3
    

    查看路径下文件是否存在

    ls /usr/local/bin|grep scrapy
    

    系统环境配置信息

    echo $PATH
    

    1、文件方式
    添加系统环境--》保存

    cd ~
    touch .bash_profile
    open -e .bash_profile
    

    修改完保存后才会立即生效

    source ~/.bash_profile
    

    2、命令方式

    sudo vi ~/.bash_profile
    //插入
    export PATH=$PATH:/usr/local/...     路径地址
    //保存
    sourse~/.bash_profile
    

    相关文章

      网友评论

        本文标题:mac 开发Python常见命令使用

        本文链接:https://www.haomeiwen.com/subject/hfbhfftx.html