我正在安装像这样的sudo gem install cocoapods
的cocoapods,这给了我这个错误:
ERROR: Loading command: install (LoadError)
dlopen(/Users/pepa/.rbenv/versions/2.5.0/lib/ruby/2.5.0/x86_64-darwin16/openssl.bundle, 9):
Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /Users/pepa/.rbenv/versions/2.5.0/lib/ruby/2.5.0/x86_64-darwin16/openssl.bundle
Reason: image not found - /Users/pepa/.rbenv/versions/2.5.0/lib/ruby/2.5.0/x86_64-darwin16/openssl.bundle
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
并且肯定是空的:
ls: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib: No such file or directory
我已经使用brew
brew list
autoconf freetype jansson libgpg-error libusb openssl@1.1 readline zlib
automake gcal jemalloc libimobiledevice libusbmuxd p7zip ruby
boost gdbm jpeg libksba libxml2 pcre ruby-build
c-ares gettext libde265 libplist libyaml pkg-config sphinx-doc
carthage icu4c libev libpng libzip python@2 sqlite
coreutils ideviceinstaller libevent libtasn1 lynx python@3.9 usbmuxd
curl ios-deploy libffi libtool nghttp2 rbenv xz
但是从历史上看,我可能曾经使用过MacPorts甚至自定义版本。
我尝试了大多数故障排除提示,例如从这里开始:uWSGI can not load libssl.1.0.0.dylib
答案 0 :(得分:0)
我在系统上的其他地方找到了该库,将其复制并可以正常工作。 我不为此感到骄傲,但它确实有效。
df['date'] = pd.to_datetime(df['date'], dayfirst=True)
df = df.sort_values(['user id','date'])
s = df.groupby('user id')['date'].transform('min')
m1 = s.ne(df['date'])
m3 = df['status'].mask(m1).eq('rejected').groupby(df['user id']).transform('any')
df['last1'] = m1.groupby(df['user id']).cumsum()
df['rejected1'] = df['last1'].where(m3, 0)
df = df.sort_index()
print (df)