question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'save-exact' option for saving exact version in Pipfile

See original GitHub issue

I’ve looked through the docs and the cli, but cannot seem to find a way to save the version of the installed package explicitly without editing the Pipfile after installing a package.

Example: pipenv install scipy would add scipy = "*" to the Pipfile.

I would have expected a way to have scipy = "==1.2.0" to the Pipfile instead.

I was wondering if this sort of functionality already exists and/or if there is any reason not to go this route.

This would be similar to running npm install react --save-exact, where the installed version is added to the package.json file.

Apologies in advance if this is not the right forum/format for this question. I had tried looking through the docs, Stackoverflow, and search engines without luck.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:9
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
Demetri0commented, Jan 16, 2021

I think that it should be by default behavior. I’m totally don’t mean any version when I install something, but I mean the latest on the current moment(moment when I use pipenv install smth). And I wish bugfixes to be applicable so it should be not == but ~=

0reactions
matteiuscommented, Sep 16, 2022

pipenv sync installs the versions from the lock file, and pipenv install re-lock with the Pipfile specifiers and then installs that updated lock file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Basic Usage of Pipenv - Read the Docs
Specify your target Python version in your Pipfile 's [requires] section. Ideally, you should only have one target Python version, as this is...
Read more >
How to specify platforms-specific extras or version in Pipfile?
It's not clear what to do when one wants to specify different version or options for a package, depending on the platform. Specifically,...
Read more >
How to save exact npm package versions
There are two ways to force npm or yarn to save exact versions in your package.json. 1. Everytime you install a package //...
Read more >
Pipenv - Easily Manage Packages and Virtual Environments
In this Python Programming Tutorial, we will be learning how to use Pipenv. Pipenv is a new package manager that combines pip and...
Read more >
Python Dependencies - Everything You Need to Know
Creating a lock file (such as pipfile.lock) ensures that dependencies remain pinned to the exact version in use, ensuring reproducibility.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found