sudo pip install ansible di MacOS gagal dengan kesalahan "tidak dapat menemukan openssl / opensslv."

0

Saya mengikuti langkah-langkah dari instalasi MicroK8s, dan telah menginstal ulang openSSL pada mesin saya tetapi tidak berhasil.
Saya melihat peringatan berikut, yang kemungkinan terkait, tetapi saya tidak tahu bagaimana cara memperbaikinya.

writing requirements to src/cryptography.egg-info/requires.txt
writing src/cryptography.egg-info/PKG-INFO
writing top-level names to src/cryptography.egg-info/top_level.txt
writing dependency_links to src/cryptography.egg-info/dependency_links.txt
warning: manifest_maker: standard file '-c' not found

reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '*' found under directory 'vectors'
writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
running build_ext
generating cffi module 'build/temp.macosx-10.14-intel-2.7/_padding.c'
creating build/temp.macosx-10.14-intel-2.7
generating cffi module 'build/temp.macosx-10.14-intel-2.7/_constant_time.c'
generating cffi module 'build/temp.macosx-10.14-intel-2.7/_openssl.c'
building '_openssl' extension
creating build/temp.macosx-10.14-intel-2.7/build
creating build/temp.macosx-10.14-intel-2.7/build/temp.macosx-10.14-intel-2.7
cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c build/temp.macosx-10.14-intel-2.7/_openssl.c -o build/temp.macosx-10.14-intel-2.7/build/temp.macosx-10.14-intel-2.7/_openssl.o -Wconversion -Wno-error=sign-conversion
build/temp.macosx-10.14-intel-2.7/_openssl.c:498:10: fatal error: 'openssl/opensslv.h' file not found
#include <openssl/opensslv.h>
         ^~~~~~~~~~~~~~~~~~~~
1 error generated.
error: command 'cc' failed with exit status 1

Terima kasih sebelumnya atas bantuan Anda!

Gary Greenberg
sumber
Sudahkah Anda mencoba memutakhirkan pip? pip install --upgrade pip
oh.dae.su
Tidak, tetapi dengan saran Anda, saya lakukan dan tampaknya telah memperbaiki masalah saya! Terima kasih banyak oh.dae.su !!
Gary Greenberg