For questions related to Python's pipenv dependency management tool.
Questions tagged [pipenv]
1333 questions
255
votes
2 answers
How to remove a virtualenv created by "pipenv run"
I am learning Python virtual environment. In one of my small projects I ran
pipenv run python myproject.py
and it created a virtualenv for me in C:\Users\USERNAME\.virtualenvs
I found it also created or modified some files under my project source…

Z.Wei
- 3,658
- 2
- 17
- 28
231
votes
28 answers
Pipenv: Command Not Found
I'm attempting to use pipenv. I ran the command pip install pipenv, which ran successfully:
...
Successfully built pipenv pathlib shutilwhich pythonz-bd virtualenv-clone
Installing collected packages: virtualenv, pathlib, shutilwhich,…

lgants
- 3,665
- 3
- 22
- 33
100
votes
4 answers
Is there a way to use pipenv with Jupyter notebook?
Is there a way to use pipenv with Jupyter notebook?
Or more specifically, with an atom nteract/hydrogen python 3 kernel?

emehex
- 9,874
- 10
- 54
- 100
94
votes
5 answers
Get path of virtual environment in pipenv
How to can get the path of virtualenv in pipenv?
can configure it to use a custom path for newly created virtualenv?

amir
- 2,443
- 3
- 22
- 49
93
votes
6 answers
How to get pipenv running in docker?
Im installing pipenv in my docker:
RUN pip install pipenv
RUN cd /my/app/path/ && pipenv install
RUN cd /my/app/path/ && pipenv shell
Im getting the error:
Traceback (most recent call last):
File "/usr/local/bin/pipenv", line 11, in
…

Mulgard
- 9,877
- 34
- 129
- 232
83
votes
8 answers
Deactivate a pipenv environment
How can I deactivate my pipenv environment?
With other tools I've been able to do something like source deactivate, but that has no affect here.
Create an environment:
pipenv --three
Activate the environment:
source $(pipenv…

tim_xyz
- 11,573
- 17
- 52
- 97
82
votes
7 answers
Make Pipenv create the virtualenv in the same folder
I want Pipenv to make virtual environment in the same folder with my project (Django).
I searched and found the PIPENV_VENV_IN_PROJECT option but I don't know where and how to use this.

DAMAR225
- 1,993
- 1
- 13
- 22
74
votes
6 answers
How to install dependencies from a copied pipfile inside a virtual environment?
The problem originates when I start by cloning a git project that uses pipenv, so it has a Pipfile + Pipfile.lock. I want to use a virtual environment with the project so I run pipenv shell. I now have a virtual environment created and I am inside…

Caleb Syring
- 1,107
- 1
- 11
- 20
73
votes
14 answers
How to resolve Python package dependencies with pipenv?
I am using pipenv to handle Python package dependencies.
The Python package is using two packages (named pckg1 and pckg2) that rely on the same package named pckg3, but from two different versions. Showing the dependency tree :
$ pipenv graph
…

Val Berthe
- 1,899
- 1
- 18
- 33
72
votes
2 answers
Git - Should Pipfile.lock be committed to version control?
When two developers are working on a project with different operating systems, the Pipfile.lock is different (especially the part inside host-environment-markers).
For PHP, most people recommend to commit composer.lock file.
Do we have to do the…

Julien Le Coupanec
- 7,742
- 9
- 53
- 67
70
votes
6 answers
How to setup a pipenv Python 3.6 project if OS Python version is 3.5?
My Ubuntu 16.04.03 is installed with Python 3.5.2. How do I setup pipenv to use Python 3.6 when my system does not have python 3.6?
$ pipenv --python 3.6
Warning: Python 3.6 was not found on your system…
You can specify specific versions of…

Sun Bear
- 7,594
- 11
- 56
- 102
63
votes
6 answers
Set python version when creating virtualenv using pipenv
Using a Raspberry Pi using Debian 4.14.34-v7+, I am trying to get pipenv set up with Python 3.6.5 as the default version of Python. I first install Python 3.6 by compiling it on the Pi (hours...). After making a 'robot' directory, I then install…

James Taylor
- 743
- 1
- 6
- 6
58
votes
1 answer
How to run --upgrade with pipenv?
Running (say for numpy) pipenv install --upgrade numpy tries to install --upgrade and numpy instead of normal pip behavior for --upgrade switch.
Is anyone else having this problem?
Edit:
Everyone, stop using pipenv. It's terrible. Use poetry…

adam.hendry
- 4,458
- 5
- 24
- 51
57
votes
1 answer
What is pipenv [dev-packages] section for?
I'm learning pipenv and there's something I don't quite understand. Apparently your Pipfile can contain two sections:
[packages]
...
[dev-packages]
....
As I understand it, the packages section is where the packages that you install are listed. …

Jim
- 13,430
- 26
- 104
- 155
56
votes
11 answers
How to freeze a requirement with pipenv?
For example we have some pipfile (below) and I'd like to freeze the django version. We don't have a requirements.txt and we only use pipenv. How can I freeze the django version?
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name =…

arshbot
- 12,535
- 14
- 48
- 71