首页 > 解决方案 > 如何通过 pip 安装 twilio

问题描述

如何通过 pip 安装 twilio?

我试图安装twiliopython模块

但我无法安装它

我收到以下错误

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.

我安装了蟒蛇

这是一个问题吗?

标签: pythonmoduleinstallationtwilio

解决方案


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

sudo pip install --ignore-installed twilio

推荐阅读