简体   繁体   English

如何使用 pipenv 管理 2 个以上的包组?

[英]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组,我还有testjupyterdash

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.

相关问题 如何在python中找到大小大于值的组? - How can I find the groups with size more than a value in python? 如何让 pipenv 安装 package 子依赖项 - how can I get pipenv to install package sub dependencies 如何禁止将软件包添加到Pipenv.lock并由Pipenv安装? - How can I ban a package from being added to Pipenv.lock and installed by Pipenv? 如何通过Python Boto检索超过50个自动缩放组 - How can I retrieve more than 50 Autoscaling Groups via Python Boto 我如何应用groupBy()在Pyspark中仅创建多于X个元素的组? - How can I apply groupBy() to only create groups of more than X elements in Pyspark? 在 group by 之后我想对 python 中超过 5 个成员的组进行聚合,我应该怎么做? - after group by I want to do aggregation on those groups with more than 5 members in python, how should I do that? 如何管理 Elasticsearch 中超过 10,000,000 个文档的索引以进行快速搜索? - How do I manage an index with more than 10,000,000 documents in Elasticsearch for fast searching? 当我在Python中有两个以上的组时,如何进行精确的Fisher测试? - How to conduct an exact Fisher test when I have more than two groups in Python? 可以像“pip search”这样的pipenv搜索包吗? - Can pipenv search package like "pip search"? 我可以删除 pipenv 缓存文件夹吗? 如何安全地做到这一点 - Can I remove pipenv cache folder? How to safely do it
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM