美文网首页
Mac macOS下安装Python第三方模块

Mac macOS下安装Python第三方模块

作者: developerChenxi | 来源:发表于2017-12-29 17:55 被阅读0次

    pip工具

    Window和macOS在安装Python3.4以后的版本会自动安装pip,在命令行中使用pip工具,Windows环境下使用命令"pip", 在OS X和Linux 环境下使用命令"pip3"。

    以安装requests模块为例:

    方法一:

    • step1:下载源码
      git clone git://github.com/requests/requests.git
      
    • step2: cd 到源码所在目录
      cd [your_source_path]\requests\
      
    • step3: 执行安装命令
      pip3 installl .
      

    方法二:

    pip3 install requests
    

    相关文章

      网友评论

          本文标题:Mac macOS下安装Python第三方模块

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