[英]How can I manage more than 2 package groups with pipenv?
I'm looking for suggestions on how to use pipenv
to manage multiple package groups.我正在寻找有关如何使用pipenv
管理多个包组的建议。
In addition to the base and dev
groups, I have test
, jupyter
and dash
.除了 base 和dev
组,我还有test
、 jupyter
和dash
。
I don't think it's possible.我不认为这是可能的。 There are only 2 ways to install packages: production (no option) and non-production (option --dev
).安装包只有两种方法:生产(无选项)和非生产(选项--dev
)。 These two groups are hard-coded in the code.这两组在代码中是硬编码的。
I'd love to see this in official pipenv
here .我很想在此处的官方pipenv
看到这一点。 My suggestion would go to have this directory structure.我的建议是使用这个目录结构。
├── project
└── requirements
├── dash
│ ├── PipFile
│ └── PipFile.lock
├── dev
│ ├── PipFile
│ └── PipFile.lock
├── jupyter
│ ├── PipFile
│ └── PipFile.lock
└── test
├── PipFile
└── PipFile.lock
and based on what environment you need to work on, you can use after you know where is your virtual env using pipenv --venv
or to use a custom venv
location https://pipenv.kennethreitz.org/advanced/#custom-virtual-environment-location并根据您需要工作的环境,您可以在使用pipenv --venv
或使用自定义venv
位置https://pipenv.kennethreitz.org/advanced/#custom-virtual知道虚拟环境在哪里后使用-环境位置
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.