python - Vagrant 起来 : InsecurePlatformWarning

标签 python ssl vagrant pyopenssl

我正在尝试执行 vagrant up 但一直遇到此错误:

==> default: IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/_billiard.so'
==> default: /usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
==> default:   InsecurePlatformWarning
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

我确实安装了 urllib3[secure] 并按照文档所述构建了 cryptography,但没有成功。

在 Ubuntu 16.04 上工作

Vagrant 版本 --> 1.9.3

以防万一,VirtualBox版本--> 5.1.20r114628

此外,我宁愿避免执行 sudo vagrant up,因为我已经读过几次,不推荐这样做。我对此很陌生,不想搞砸太多。

更新: 我已经尝试安装 requests[security],就像我在类似的帖子上看到的那样,但没有解决问题...

更新: 也尝试关注此主题 --> InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately但也不工作

最佳答案

尝试升级 python 模块

sudo pip install pyOpenSSL cryptography idna certifi --upgrade sudo pip install urllib3[secure] --upgrade sudo pip install requests[security] --upgrade

关于python - Vagrant 起来 : InsecurePlatformWarning,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43560614/

相关文章:

python - 将对象转换为 pandas 中的字符串后出现关键错误?

php - 以安全的方式向服务器发送密码

java - 在 Java 中一次性写入 SSL 套接字的最大数据限制是多少?

java - jython 中的 SSL 非法状态异常

nginx - 远程 Xdebug 端口 9000 繁忙 Phpstorm

python - 在 Python 打印语句中访问列表的名称

python - 关于 sns.barplot 及其工作原理的问题?

ruby - 哪里可以学习 ruby​​ DSL?

jenkins - 使用 Ansible 安装 Jenkins 插件告诉我面包屑值无效

python - 为 couchdb 指定附件编码