我正在尝试执行 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/