它抛出一个错误 客栈全球激活花生
Pub将可执行文件安装到$ HOME / .pub-cache / bin中,该文件不在路径中。 您可以通过将其添加到Shell的配置文件(.bashrc,.bash_profile等)中来解决此问题:
export PATH =“ $ PATH”:“ $ HOME / .pub-cache / bin”
活化花生3.2.1
我已将以下路径添加到 .bash_profle
export PATH="$PATH:/Users/tusharrai/development/flutter/bin"
export PATH="$PATH:/Users/tusharrai/development/flutter/.pub-cache/bin"
export PATH="$PATH:/Users/tusharrai/development/flutter/bin/cache/dart-sdk/bin"
export PATH="$PATH:/Users/tusharrai/development/flutter/bin/cache/dart-sdk.pub-cache/bin"
答案 0 :(得分:0)
我会避免将所有过去都添加到您的@contextmanager
def acquire_lock(self, path, identifier):
lock = zk.Lock(path, identifier)
def my_listener(state):
if state == KazooState.LOST:
lock.release()
elif state == KazooState.SUSPENDED:
...
try:
retry = KazooRetry()
# etc
中。
相反,只需运行.bash_profile
。