【问题标题】:How to install twilio via pip如何通过 pip 安装 twilio
【发布时间】:2018-08-23 12:03:16
【问题描述】:

如何通过 pip 安装 twilio?

我尝试安装twilio python 模块

但我无法安装它

我收到以下错误

no Module named twilio

尝试安装 twilio 时

pip install twilio

我收到以下错误。

pyopenssl 18.0.0 has requirement six>=1.5.2, but you'll have six 1.4.1 which is incompatible. Cannot uninstall 'pyOpenSSL'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

我得到了答案并安装了

pip install --ignore-installed twilio

但我得到以下错误

Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/pytz-2018.5.dist-info' Consider using the `--user` option or check the permissions.

我已经安装了 anaconda

这是个问题吗?

【问题讨论】:

标签: python module installation twilio


【解决方案1】:

作为一种快速解决方法,您可以使用:

sudo pip install --ignore-installed twilio

【讨论】:

  • 错误:由于 EnvironmentError 无法安装软件包:[Errno 13] Permission denied: '/Library/Python/2.7/site-packages/pytz-2018.5.dist-info' 考虑使用@ 987654322@ 选项或检查权限
  • 为它添加一个sudo(我正在更新答案)
  • 那将是“前置”@ibarrond - “附加”意味着添加到末尾,而不是开头。干杯。
  • 注意并更改!
【解决方案2】:

step1:下载python-2.7.15.msi

第 2 步:安装,如果您的系统在安装时没有将 Python 添加到您的 PATH 中 "将 python exe 添加到路径"

第 3 步:转到系统的 C:\Python27\Scripts

step4:in command prompt C:\Python27\Scripts>pip install twilio

第五步:安装完成后>python命令行 导入 twilio 打印(twilio.版本

第 6 步:如果你得到版本......你就完成了

【讨论】:

  • 用户指定他正在使用 Anaconda。无需说明如何安装 Python 2.7
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2019-03-05
  • 2018-10-29
  • 2017-02-04
  • 2017-03-23
  • 1970-01-01
  • 1970-01-01
  • 2019-02-24
相关资源
最近更新 更多