我正在尝试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但无法正常工作
答案 0 :(得分:0)
尝试升级python模块
sudo pip install pyOpenSSL cryptography idna certifi --upgrade
sudo pip install urllib3[secure] --upgrade
sudo pip install requests[security] --upgrade