在 requirements.txt 使用 pip 安装 tar.gz
install tar.gz with pip at requirements.txt
我想像这样将 electrum-ltc 安装到我的应用程序中:
但是如果我在我的 requirements.txt 中包含这一行,则角色退出失败,我必须使用上面显示的同一行手动安装它。
如果我像这样安装在 requirements.txt:
某些模块在特定情况下未安装它的脚本包。
提前致谢
我不知道你是否可以接受它作为答案,因为我 "cheated" 在某种程度上。
我做到了:
$ mkdir /tmp/tgz-install && cd /tmp/tgz-install
$ pipenv install https://download.electrum.org/3.3.3/Electrum-3.3.3.tar.gz\#egg\=electrum\[fast\]
$ pipenv shell
$ pip3 freeze > requirements.txt
$ cat requirements.txt
我得到了:
aiohttp==3.5.4
aiohttp-socks==0.2.2
aiorpcX==0.10.4
async-timeout==3.0.1
attrs==18.2.0
certifi==2018.11.29
chardet==3.0.4
dnspython==1.16.0
ecdsa==0.13
Electrum==3.3.3
idna==2.8
jsonrpclib-pelix==0.4.0
multidict==4.5.2
protobuf==3.6.1
pyaes==1.6.1
pycryptodomex==3.7.3
QDarkStyle==2.5.4
qrcode==6.1
six==1.12.0
yarl==1.3.0
我想你可以用 pip
做任何事情。
如果您不能直接使用 pipenv
- 您可以使用 created requirements
.
如有问题请告知。
我想像这样将 electrum-ltc 安装到我的应用程序中:
但是如果我在我的 requirements.txt 中包含这一行,则角色退出失败,我必须使用上面显示的同一行手动安装它。
如果我像这样安装在 requirements.txt:
某些模块在特定情况下未安装它的脚本包。
提前致谢
我不知道你是否可以接受它作为答案,因为我 "cheated" 在某种程度上。
我做到了:
$ mkdir /tmp/tgz-install && cd /tmp/tgz-install
$ pipenv install https://download.electrum.org/3.3.3/Electrum-3.3.3.tar.gz\#egg\=electrum\[fast\]
$ pipenv shell
$ pip3 freeze > requirements.txt
$ cat requirements.txt
我得到了:
aiohttp==3.5.4
aiohttp-socks==0.2.2
aiorpcX==0.10.4
async-timeout==3.0.1
attrs==18.2.0
certifi==2018.11.29
chardet==3.0.4
dnspython==1.16.0
ecdsa==0.13
Electrum==3.3.3
idna==2.8
jsonrpclib-pelix==0.4.0
multidict==4.5.2
protobuf==3.6.1
pyaes==1.6.1
pycryptodomex==3.7.3
QDarkStyle==2.5.4
qrcode==6.1
six==1.12.0
yarl==1.3.0
我想你可以用 pip
做任何事情。
如果您不能直接使用 pipenv
- 您可以使用 created requirements
.
如有问题请告知。