In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how to test the new version of Python development tool pipenv", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's take you to learn "How to test the new version of Python development tool pipenv"!
Pipenv is a tool that helps Python developers maintain isolated virtual environments with a specific set of dependencies to achieve replicable development and deployment environments. It is similar to tools found in other programming languages such as bundler, composer, npm, cargo, yarn, etc.
A new version of pipenv 2020.6.2 was recently released. It is now available in Fedora 33 and Rawhide. For older Fedora, maintainers decided to package it into COPR for testing first. So before they push it to a stable Fedora release, give it a try. The new version doesn't bring any novel features, but after two years of development, it solves a lot of problems and does a lot of different things at the bottom. What worked before should continue to work, but it may be slightly different.
how to obtain
If you are already running Fedora 33 or Rawhide, run $ sudo dnf upgrade pipenv or $ sudo dnf install pipenv and you will get the new version.
On Fedora 31 or Fedora 32, you need to use the copr repository until tested packages appear in the official repository. To enable the warehouse, run:
$ sudo dnf copr enable @python/pipenv
Then upgrade pipenv to the new version and run:
$ sudo dnf upgrade pipenv
Or, if not already installed, install it by:
$ sudo dnf install pipenv
If you need to roll back to the officially maintained version, you can run:
$ sudo dnf copr disable @python/pipenv$ sudo dnf distro-sync pipenvCOPR is not officially supported by Fedora infrastructure. Use of software packages is at your own risk.
how to use
If you have a project managed with an older version of pipenv, you should be able to use the new version without any problems. Please let us know if you have any questions.
If you are not familiar with pipenv or want to start a new project, please refer to the following quick guide:
Create a working directory:
$ mkdir new-project && cd new-project
Initialize pipenv using Python 3:
$ pipenv --three
Install the required software packages, for example:
$ pipenv install six
Generate Pipfile.lock file:
$ pipenv lock
Now, you can commit the Pipfile and Pipfile.lock files you create to a version control system (e.g. git), and others can use this command in cloned repositories to get the same environment:
$ pipenv install
For more examples, see pipenv's documentation.
How to report a problem
If you experience any problems with the new version of pipenv, please report the problem in Fedora's Bugzilla. The maintainer of the pipenv package in the Fedora repository and the copr repository is the same person. Please indicate in your report that it is a new version.
At this point, I believe everyone has a deeper understanding of "how to test the new version of Python development tool pipenv," so let's actually do it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.