安装pip Python 3.7 引用 oss2

安装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)