0
在local machive(开发)和生产服务器上,我在requirements.txt中有一些变化。pip组包在requirements.txt中
例如,我想忽略psycopg2的开发,但将其用于生产。
我使用pip freeze> requirements.txt,然后手动添加所需的,然后将其推送到服务器。 有没有办法做到这一点像在宝石束安装?我的意思是像
bundle install --without production
或类似的东西,小点不要每次手动做这个。
我认为这[[essay](https://www.kennethreitz.org/essays/a-better-pip-workflow)会帮助你。 – stamaimer