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.

pipenv installation through system package managers

See original GitHub issue

Ran into this situation, wanted to use pipenv on CircleCI, before I was using python-virtualenv package and would install it through the package manager of Ubuntu (sudo apt-get python-virtualenv and then I would be able to call virtualenv on the command line. However the only way I can get pipenv is pip install --user pipenv and it stores it in ~/.local/bin, due to how CircleCI is setup I would need to modify the path to include that location before every command that is run.

It would be nice it pipenv could have the same functionality to sudo apt-get python-pipenv so it is available at the system level in a Docker image.

Right now my best path forward is

virtualenv .venv
source .venv/bin/activate
pip install pipenv
# run pipenv under the virtualenv

Making a virtualenv to install pipenv which will run a virtualenv seems silly. Since we are using pipenv in dev I want to keep the process the same as how the developers build the project and not use pip/virtualenv/requirements.txt on the CI server

edit: To get around this I added pip install --user pipenv and ENV PATH="~/.local/bin:${PATH}" to my Dockerfile and it found pipenv

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
kennethreitzcommented, Sep 28, 2017

that’s what it’s designed for!

0reactions
kennethreitzcommented, Sep 28, 2017

That sounds dope!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python Package Management with Pipenv | Analytics Vidhya
Pipenv is a modern package manager that brings the best package managing practices found in other languages to Python.
Read more >
Pipenv: A Guide to the New Python Packaging Tool
Pipenv is a packaging tool for Python that solves some common problems associated with the typical workflow using pip, virtualenv, and the good...
Read more >
Pipenv & Virtual Environments
This tutorial walks you through installing and using Python packages. ... Homebrew is a popular open-source package management system for macOS.
Read more >
Python Pipenv: Another Package Manager
Pipenv is an alternative to Python Poetry that does similar things. Like Poetry, many prefer Pipenv instead of pip install and virtualenv ...
Read more >
Pipenv & Virtual Environments - Python Packaging Authority
This tutorial walks you through installing and using Python packages. ... Once you have pipx ready on your system, continue to install Pipenv:....
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