Questions tagged [pipenv]

For questions related to Python's pipenv dependency management tool.

1333 questions
55
votes
2 answers

How to install / update package with pipenv without updating the rest of packages

I use pipenv (version 2018.11.26) to manage dependencies in my project. Sometimes I want to add or update only one package and don't change versions of other packages. How can I achieve that? I've tried both pipenv update --selective-upgrade…
jozo
  • 4,232
  • 1
  • 27
  • 29
52
votes
1 answer

How do I set environment variables in pipenv?

I need to set some access token environment variables for my python project that I am running in a pipenv. I will want to set these environment variables every time I start the pipenv. How do I do this?
user1283776
  • 19,640
  • 49
  • 136
  • 276
50
votes
6 answers

How can I see the current version of packages installed by pipenv?

I'm managing my Python dependencies with pipenv. How can see the currently installed versions of packages? I could examine Pipfile.lock, but is there a simpler way from the command line?
Sam
  • 5,997
  • 5
  • 46
  • 66
47
votes
5 answers

Pipenv stuck "⠋ Locking..."

Why is my pipenv stuck in the "Locking..." stage when installing [numpy|opencv|pandas]? When running pipenv install pandas or pipenv update it hangs for a really long time with a message and loading screen that says it's still locking. Why? What do…
Connor
  • 4,216
  • 2
  • 29
  • 40
46
votes
4 answers

How to downgrade python version from 3.8 to 3.7 (mac)

I'm using Python & okta-aws tools and in order to fetch correct credentials on aws I need to run okta-aws init. But got an error message of Could not read roles from Okta and the system prompted that"Your Pipfile requires python_version 3.7, but you…
user13902742
  • 505
  • 1
  • 4
  • 6
46
votes
1 answer

Feature comparison between npm, pip, pipenv and Poetry package managers

How do the main features of npm compare with pip, pipenv and Poetry package managers? And how do I use those features of pipenv or Poetry? This could primarily help someone transitioning from being JavaScript developer to a Python developer. I've…
Resonance
  • 3,359
  • 2
  • 16
  • 20
46
votes
2 answers

With pipenv, how to specify the minimum python version in the pipfile?

Is there a way in pipenv to specify the minimum version of python in the Pipfile? Would something like this work? [requires] python_version = ">=python 3.5"
Jasonca1
  • 4,848
  • 6
  • 25
  • 42
45
votes
13 answers

Command "python setup.py egg_info" failed with error code 1 in /tmp/..../

I got the following error installing a dependency with pip: pip9.exceptions.InstallationError Command "python setup.py egg_info" failed with error code 1 in /tmp/tmpoons7qgkbuild/opencv-python/ Below is the result of running the command pipenv…
Semnodime
  • 1,872
  • 1
  • 15
  • 24
45
votes
2 answers

what are the advantages of using pipenv sync over pipenv install?

I am using pipenv to manage my python packages, in my repository, I have both Pipfile and Pipfile.lock versioned. and I want to install all python packages on my live server. should I use pipenv sync or pipenv install? and why?.
osama7901
  • 1,461
  • 2
  • 14
  • 21
45
votes
3 answers

Why should version numbers not be pinned in a Pipfile?

I'm looking into using pipenv and in the docs here https://pipenv.pypa.io/en/latest/basics/#importing-from-requirements-txt it says (emphasis mine) Note, that when importing a requirements file, they often have version numbers pinned, which you…
w--
  • 6,427
  • 12
  • 54
  • 92
45
votes
14 answers

Windows reports error when trying to install package using pipenv

I installed pipenv by following the instructions here. From the Windows command prompt I ran pip install --user pipenv which returned the message Successfully installed pipenv-5.3.3 Now I want to install the requests package using pipenv, so I…
Robert
  • 2,111
  • 4
  • 18
  • 32
43
votes
1 answer

What is the difference between pipenv install compared to pip install ?

What is the difference between using pipenv install compared to using pip install after activating an environment using pipenv shell. I know pipenv install will Create the virtual environment if it is not created…
darkavenger
  • 675
  • 1
  • 5
  • 11
39
votes
3 answers

Pipenv with Conda?

I'm using Anaconda for my virtualenvs in win 10. I'm using git-bash .I've been reading about pipenv recently and decided to give it a try. I installed pipenv on my base conda python which is a version of python 2.7 using : pip install pipenv I can…
user1592380
  • 34,265
  • 92
  • 284
  • 515
39
votes
3 answers

Customize module search path (PYTHONPATH) via pipenv

I have a Python project consisting of a Jupyter notebook, several scripts in a bin directory and modules in a src directory, with dependencies in a Pipfile: myproject ├── myproject.ipynb ├── Pipfile ├── Pipfile.lock ├── bin │   ├── bar.py │   └──…
David Moles
  • 48,006
  • 27
  • 136
  • 235
37
votes
4 answers

pkg_resources.DistributionNotFound: The 'pipenv==2018.10.13' distribution was not found and is required by the application

I've reinstalled pip and pipenv due to some broken package with ansible. Now, it seems like my pip dependencies are all screwed. Any suggestion or help is greatly appreciated. $ which python2 /usr/local/bin/python2 $ which…
Lee.Tan
  • 619
  • 2
  • 6
  • 18
1
2
3
88 89