美文网首页
安装pip Python 3.7 引用 oss2

安装pip Python 3.7 引用 oss2

作者: 心镜万象 | 来源:发表于2019-10-25 21:12 被阅读0次

    安装pip Python 3.7 引用 oss2

    pip有错误提示

    
    MacBook-Pro:Desktop$ pip
    
    -bash: /usr/local/bin/pip: No such file or directory
    
    

    重新安装pip

    
    MacBook-Pro:Desktop$ python3 -m pip install --upgrade pip
    
    Collecting pip
    
      Using cached https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl
    
    Installing collected packages: pip
    
      Found existing installation: pip 19.1.1
    
        Uninstalling pip-19.1.1:
    
          Successfully uninstalled pip-19.1.1
    
    Successfully installed pip-19.3.1
    
    MacBook-Pro:Desktop congzhang$ pip
    
    

    安装 oss2

    
    MacBook-Pro:Desktop $ pip -install oss2
    
    

    安装 后验证 oss2 可用

    
    MacBook-Pro:Desktop$ python3
    
    Python 3.7.4 (default, Sep  7 2019, 18:27:02)
    
    [Clang 10.0.1 (clang-1001.0.46.4)] on darwin
    
    Type "help", "copyright", "credits" or "license" for more information.
    
    >>> import oss2
    
    >>> exit()
    
    

    相关文章

      网友评论

          本文标题:安装pip Python 3.7 引用 oss2

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