【发布时间】:2022-07-12 00:58:55
【问题描述】:
有一个关于freezing into requirements.txt 的问题here,但这个问题是关于installing from requirements.txt。
我在远程服务器上有一个requirements.txt 文件:
Pillow==8.2.0nltk==3.6.2notebook==6.4.0 #numpy==1.19.5
& 然后我意识到我想在运行时排除 notebook==6.4.0pip install -r requirements.txt。我们怎样才能做到这一点?
一种可能性:我可以 comment 或 delete 来自 local server's requirements.txt 的不需要的包,然后将 git 推送回远程服务器。如何在不访问本地服务器的情况下排除包?谢谢。
【问题讨论】:
标签: python-3.x installation pip remote-server requirements.txt