当我brew install python
时,这是什么意思Caveats
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
/usr/local/etc/openssl/certs
and run
/usr/local/opt/openssl/bin/c_rehash
This formula is keg-only, which means it was not symlinked into /usr/local.
Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/openssl/lib
CPPFLAGS: -I/usr/local/opt/openssl/include
.pem
个文件是什么? Keg-only
,这些是否意味着我需要在我的bash配置文件中链接brew python以引用brew安装而不是在mac python中构建?答案 0 :(得分:1)
pem
个文件是证书文件(公钥);在使用TLS / SSL等加密(例如https://
)时,您通常需要它们来验证远程端的真实性。您可以尝试使用Google搜索"PEM file"
,这可能会指导您,例如到What is a Pem file and how does it differ from other OpenSSL Generated Key File Formats?
keg-only
意味着所安装的软件包不会污染全局命名空间(因此您不能意外地使用它并破坏事物)。
使用brew安装的python的最简单方法可能是将/usr/local/opt/python/bin/
(或类似的,我现在没有brew
可用)添加到PATH
变量中{ {1}}。 (需要链接brew python 在bash配置文件的上下文中没有多大意义;你也应该使用术语符号链接而不是 link < / em>避免含糊不清)