我使用的是 macOS Big Sur 11.0.1。
我正在设置一个virtual env
$python3 -m venv $my_workdir)/.virtualenv
Run Code Online (Sandbox Code Playgroud)
但在构建wheel包时出现此错误:
building '_openssl' extension
creating build/temp.macosx-10.14.6-x86_64-3.8/build
creating build/temp.macosx-10.14.6-x86_64-3.8/build/temp.macosx-10.14.6-x86_64-3.8
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -I/usr/local/opt/gettext/include -I/Users/engontang/devspace/energisme/terraform/tfwrapper-infra-pda/.wrapper/.virtualenv/include -I/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c build/temp.macosx-10.14.6-x86_64-3.8/_openssl.c -o build/temp.macosx-10.14.6-x86_64-3.8/build/temp.macosx-10.14.6-x86_64-3.8/_openssl.o -Wconversion -Wno-error=sign-conversion
build/temp.macosx-10.14.6-x86_64-3.8/_openssl.c:575:10: fatal error: 'openssl/opensslv.h' file not found
#include <openssl/opensslv.h>
^~~~~~~~~~~~~~~~~~~~
1 error generated.
error: command 'clang' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for cryptography
Building wheel for pynacl …Run Code Online (Sandbox Code Playgroud) 从 macOS 终端,当我执行时:
pwsh -command "Enter-PSSession myhost"
Run Code Online (Sandbox Code Playgroud)
我从 PowerShell 收到错误消息:
pwsh -command "Enter-PSSession myhost"
Run Code Online (Sandbox Code Playgroud)
我花了 2 个小时才找到解决方案。我要回答我自己的问题。
如何使用 ansible 安装特定版本的自制桶公式?例如,vagrant 2.2.6,而最新可用的是 2.2.7。
macos ×2
ansible ×1
eclipse ×1
node.js ×1
openssl ×1
pip ×1
powershell ×1
python ×1
python-venv ×1
python-wheel ×1
versioning ×1
wsman ×1