cool hit counter How to install Pipenv on Fedora_Intefrankly

How to install Pipenv on Fedora


Pipenv aims to bring the best of the packaging world (bundler, composer, npm, cargo, yarn, etc.) to the Python world. It tries to solve some problems and simplify the whole management process.

-- Michal Cyprian

acknowledgements

Compiled from |

https://fedoramagazine.org/install-pipenv-fedora/

Author  Michal Cyprian

Translator |  geekpi Total translations: 755 Contribution time: 1720 days

Pipenv aims to bring the best of the packaging world (bundler, composer, npm, cargo, yarn, etc.) to the Python world. It tries to solve some problems and simplify the whole management process.

Currently, the management of Python program dependencies sometimes seems to be a challenge. Developers usually create a virtual environment for each new project

[1]

, and use pip

[2]

Install the dependencies into it. In addition, they must save the collection of installed packages to a file. We have seen many tools and wrappers designed to automate this workflow. However, multiple programs still need to be combined, and the format itself is not suitable for more complex scenarios.

A tool to rule them all.

Pipenv can properly manage complex interdependencies, and it also provides manual logging of installed packages. For example, development, test, and production environments often require a different set of packages. In the past, each project required the maintenance of multiple . Pipenv using TOML

[3]

The syntax introduces a new Pipfile

[4]

Format. Thanks to this format, you can finally maintain multiple sets of requirements for different environments in a single file.

Just one year after committing the first line of code to a project, Pipenv has become the officially recommended tool for managing dependencies on Python programs. It is now finally available in the fedora repository.

Installing Pipenv on Fedora

After a fresh install of Fedora 28 and higher, you can install Pipenv by simply running this command from a terminal:.

Now your system is ready to start using the new Python 3 program with the help of Pipenv.

It is important to note that while this tool provides a good solution for the program, it is not designed to handle library requirements. Write Python libraries without fixing dependencies. You should specify in the file .

Basic Dependency Management

First create a directory for the project at

The next step is to create a virtual environment for this project.

The options here set the Python version of the virtual environment to Python 3.

Installation dependencies.

Final generation of Lockfile.

You can also check the dependency graph at

For more details on Pipenv and its commands, see the documentation

[5]

via:https://fedoramagazine.org/install-pipenv-fedora/

By Michal Cyprian

[7]

Selected by: lujun9972 Translated by: geekpi Proofread by: wxy

This article was originally compiled by LCTT and is proudly presented by Linux China


Recommended>>
1、Explore the Southeast Asian market Qidian Star invites you to Malaysia
2、What you dont know about the IoT cloud platform
3、Maersk and IBM to form joint venture to develop blockchain applications
4、Shanghai Notice of the call for industrial APP projects and application demonstration enterprises
5、Marvel Enterprise Big Data Nuggets

    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号