ios - 在 MacOS 上安装 TensorFlow-experimental 时出错 - curl : (60) SSL certificate

标签 ios macos ssl tensorflow

当在mac机上安装Tensorflow-experimental用于在iOS项目上运行tensorflow时,遇到如下问题:

终端命令:pod install

[!] Error installing TensorFlow-experimental
[!] /Users/moniruzzaman/anaconda3/bin/curl -f -L -o /var/folders/q0/_w6_j9pn3m17k569mj3l1h1r0000gn/T/d20180102-31575-100f04w/file.tgz https://dl.google.com/dl/cpdc/2cf20b661cbb3374/TensorFlow-experimental-1.1.1.tar.gz --create-dirs --netrc-optional

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.
HTTPS-proxy has similar options --proxy-cacert and --proxy-insecure. 

这个问题有解决方案吗?

最佳答案

要关闭 SSL 验证,可以使用以下命令:

echo 不安全 >> ~/.curlrc

然后在mac上安装pod for tensorflow experimental:

pod 安装

关于ios - 在 MacOS 上安装 TensorFlow-experimental 时出错 - curl : (60) SSL certificate,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48061563/

相关文章:

ios - 如何为 UIViewControllers 编写单元测试用例?

ios - 如何判断 AFNetworking 远程调用中返回的字符串

spring - 从 application.properties 引用文件

ssl - 我可以使用什么安全协议(protocol)来保护 Web 服务 (SSL/TLS)?

ruby-on-rails - 在 jboss 7 中配置 SSL

ios - 无法在 Swift 中将 Anyobject 转换为 NSString

ios - iOS 10 推送通知中的媒体附件

html - 在 NSAttributedString 中转换 html 数据的时间太长。有任何想法吗?

macos - Mac OS X 上的黑莓开发

macos - 确保/usr/local/bin 在我的 Mac 上的 $PATH 中