For questions related to Python's pipenv dependency management tool.
Questions tagged [pipenv]
1333 questions
35
votes
2 answers
Getting error while trying to run this command " pipenv install requests " in mac OS
I am facing the following error:
Warning: the environment variable LANG is not set!
We recommend setting this in ~/.profile (or equivalent) for proper expected behavior.
Creating a virtualenv for this project…
Using…

Bharanidhar Reddy
- 420
- 1
- 4
- 12
35
votes
2 answers
How can I specify a custom Git branch in my Pipfile?
It is possible to specify in Pipfile packages from custom Git repository.
But I cannot find comprehensive documentation on how to specify the concrete branch or a commit to be used for installation.
Is there a complete reference on how to use Git…

kuza
- 2,761
- 3
- 22
- 56
32
votes
5 answers
Where does pipenv install packages?
I'm using vscode, and my editor shows:
The red is showing that it can't import those packages. I'm using a pipenv virtual environment and for the life of me, I can't figure out where it installs the packages.
If I could, I could just add that to…

Shamoon
- 41,293
- 91
- 306
- 570
32
votes
4 answers
List all Pipenv environments
How do you list all Pipenv environments like virtualenv's lsvirtualenv command? The documentation does not say how. Thanks a lot to all for the help given. Cheers!

Django102
- 523
- 1
- 4
- 8
32
votes
3 answers
Pipenv vs setup.py
I am trying to migrate to pipenv. I traditionally used setup.py with pip and did pip install -e . to install the module as a package, so that I can achieve stuff like from myproject.xyz.abc import myClass from anywhere within the project.
How do I…

khan
- 7,005
- 15
- 48
- 70
31
votes
4 answers
No module named 'virtualenv.activation.xonsh'
I triyed to execute pipenv shell in a new environtment and I got the following error:
Loading .env environment variables…
Creating a virtualenv for this project…
Using /home/user/.pyenv/shims/python3.9 (3.9.7) to create…

Tlaloc-ES
- 4,825
- 7
- 38
- 84
29
votes
1 answer
"pipenv requires an #egg fragment for version controlled dependencies" warning when installing the BlueJeans meeting API client
Adapting the instructions from https://github.com/bluejeans/api-rest-meetings/tree/master/libs/python#pip-install, in a pipenv shell I'm trying to run
pipenv install git+https://github.com/bluejeans/api-rest-meetings.git@pip-repo
However, I'm…

Kurt Peek
- 52,165
- 91
- 301
- 526
28
votes
5 answers
How to fix VersionConflict locking failure in pipenv?
I'm using pipenv inside a docker container. I tried installing a package and found that the installation succeeds (gets added to the Pipfile), but the locking keeps failing. Everything was fine until yesterday. Here's the error:
(app)…

Caspian
- 633
- 1
- 10
- 29
28
votes
12 answers
pipenv requires python 3.7 but installed version is 3.8 and won't install
I know a little of Python and more than a year ago I wrote a small script, using pipenv to manage the dependencies.
The old platform was Windows 7, the current platform is Windows 10.
At that time I probably had Python 3.7 installed, now I have…

watery
- 5,026
- 9
- 52
- 92
28
votes
2 answers
How to use pipenv to install package from github
Using pipenv to install the spaCy package from github with
pipenv install -e git+https://github.com/explosion/spaCy#egg=spacy
I run into two problems:
(1) Install fails, because the following packages need to be installed before: cython, preshed,…

spbks
- 845
- 3
- 10
- 18
25
votes
5 answers
Is Python's pipenv slow?
I tried switching from venv & conda to pipenv to manage my virtual environments, but one thing I noticed about pipenv that it's oddly slow when it's doing "Locking" and it gets to the point where it stops executing for "Running out of time". Is it…

MoSalah
- 393
- 1
- 3
- 6
25
votes
1 answer
Installing dependencies of a local dependency with pipenv
Background
We have project with the following high-level directory structure*
./datascience/
├── core
│ └── setup.py
├── notebooks
│ └── Pipfile
└── web
└── Pipfile
*Excluded all the irrelevant files and directories for brevity.
The core…

Dennis
- 56,821
- 26
- 143
- 139
25
votes
5 answers
pipenv: deployment workflow
I am thinking about switching from pip & virtualenv to pipenv. But after studying the documentation I am still at a loss on how the creators of pipenv structured the deployment workflow.
For example, in development I have a Pipfile & a Pipfile.lock…

caliph
- 1,389
- 3
- 27
- 52
24
votes
2 answers
How to install a specific git branch with pipenv
How can I install a specific git branch with pipenv? I know this command will install the bitcoinlib master branch
pipenv install -e git+https://github.com/1200wd/bitcoinlib.git#egg=bitcoinlib
But how can I install a branch that isn't master?

arshbot
- 12,535
- 14
- 48
- 71
23
votes
3 answers
Pipenv trouble on MacOS "TypeError: 'module' object is not callable"
I'm starting to try and get a working pipenv, however on my Mac, it is appears that my Python enviroment is a little screwed. I removed OS X python following this post , and installed both python2.7 and python3.7 using brew. But now when trying to…

Daniel
- 371
- 2
- 8