gem install报错ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) Errno::ECONNRESET:

ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    Errno::ECONNRESET: Connection reset by peer - SSL_connect (https://api.rubygems.org/quick/Marshal.4.8/fir-cli-1.1.5.gemspec.rz)

一般报这种ssl的错误,第一种解决方法是删除官方的仓库地址,然后添加镜像地址,可是很多时候添加镜像地址都不好用,这时候可以尝试将官方仓库地址的https换成http

gem sources -a http://rubygems.org/

如果提示是否替换,就在命令行输入y,
然后执行install命令就行了

你可能感兴趣的:(hopfield神经网络)