0

我很难安装 localstack。这是在刚刚重新格式化的 ubuntu 电脑上。我不断收到此错误:

(test which virtualenv || pip install --user virtualenv) && 
(test -e .venv || virtualenv .venv) && 
(test ! -e requirements.txt || (. .venv/bin/activate; pip -q install -r requirements.txt) && 
. .venv/bin/activate; PYTHONPATH=. exec python localstack/services/install.py testlibs)
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f13119c7910>: Failed to establish a new connection: [Errno -3] Try again',)': /simple/airspeed/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f13119c7b90>: Failed to establish a new connection: [Errno -3] Try again',)': /simple/airspeed/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f13119c7cd0>: Failed to establish a new connection: [Errno -3] Try again',)': /simple/airspeed/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f13119c7e10>: Failed to establish a new connection: [Errno -3] Try again',)': /simple/airspeed/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f13119c7f50>: Failed to establish a new connection: [Errno -3] Try again',)': /simple/airspeed/
Could not find a version that satisfies the requirement airspeed==0.5.5.dev20160812 (from -r requirements.txt (line 4)) (from versions: )
No matching distribution found for airspeed==0.5.5.dev20160812 (from -r requirements.txt (line 4))

有人对此有解决方案吗?

4

2 回答 2

2

经过多次挖掘,我终于能够使它工作。我按照这个教程真的很有帮助!

因此,我决定使用 docker,而不是直接将其安装到我的电脑上。

git clone https://github.com/localstack/localstack.git
cd path/to/localstack
docker-compose up
于 2018-11-22T13:49:10.220 回答
0

如我所见,您正在尝试运行

$> localstack start

这需要 docker 和 docker-compose。

要本机运行,您需要使用:

$> localstack start --host

我已经编写了逐步安装和本地运行的博客。您可以参考:https ://medium.com/@baksh12shad/how-to-install-localstack-natively-on-ubuntu-18-04-step-by-step-ca344b7b7d78

于 2020-06-01T08:22:23.067 回答