Questions tagged [pipfile]

62 questions
1
vote
2 answers

Why psycopg2 quoted in a Pipfile

my Pipfile looks like [[source]] url = "https://pypi.python.org/simple" verify_ssl = true name = "pypi" [packages] Django = "*" gunicorn = "*" "psycopg2" = "*" [requires] # our Dockerfile is based on Python 3.7 python_version = "3.7" it's…
Dotty
  • 48
  • 6
1
vote
0 answers

Installing kivy.garden packages (matplotlib) via a pipenv pipfile in PyCharm

I am trying to add kivy.garden.matplotlib to my PyCharm project. Normally the way you would go about this is the following: pip install kivy-garden garden install matplotlib # can use the --app argument as well However I have PyCharm set up to use…
Pomme.Verte
  • 1,782
  • 1
  • 15
  • 32
1
vote
0 answers

Specifying different `file` for different `os`

I'm trying to figure out how to specify different files for different operating systems in Pipfile. In particular, pytorch has different download links and naively one would specify them as follows [packages] torch = {file =…
psarka
  • 1,562
  • 1
  • 13
  • 25
1
vote
1 answer

If I only use a library during test suite runs, should it be in normal or dev packages in my Pipfile?

We use built-in unittest (or Django's wrappers) for testing a Python project. In some of those tests, we use libs like freezegun or mock, which aren't used anywhere in the production codebase. Our CI that runs tests installs all deps before a…
anonymous coward
  • 12,594
  • 13
  • 55
  • 97
0
votes
0 answers

How do I change a hard-coded path in a Pipfile.lock?

I created a Pipfile.lock in a repo I'm using at work that has a hard-coded path in it for a local dependency. I'm now trying to install this Pipfile on a separate computer that doesn't have the dependency at that same path. How do I get that…
Nathan Wailes
  • 9,872
  • 7
  • 57
  • 95
0
votes
0 answers

AttributeError: module 'collections' has no attribute 'MutableMapping' (Ubuntu)

On my ubuntu server I am trying to activate pipenv env. When I type pipenv shell this comes out: Traceback (most recent call last): File "/usr/bin/pipenv", line 33, in sys.exit(load_entry_point('pipenv==11.9.0', 'console_scripts',…
Docker
  • 159
  • 1
  • 2
  • 10
0
votes
0 answers

Update Pipfile.lock after update pipfile

I have pipfile and Pipfile.lock in my project. I have manually updated one of the libraries in my pipfile When I compile the code, I get an error saying that sha256 is not matching. How do I update the Pipfile.lock so that this error doesn't occur.
liv2hak
  • 14,472
  • 53
  • 157
  • 270
0
votes
1 answer

pipfile not found from deeper subdirectories

Is there a directory-depth limit on the auto-location of pipfile? I have a three-level directory structure in my project and I'm finding that pipenv commands from any tier-three (or deeper) directory don't know that they're already part of a pipenv…
bukzor
  • 37,539
  • 11
  • 77
  • 111
0
votes
1 answer

How can I check that the installed packages match Pipfile.lock using pipenv?

In my tests, I would like to run a command to make sure that the installed packages in my virtual environment match the packages found in Pipfile.lock. Is there a command like this? pipenv checkifinstalled || exit 1
Flimm
  • 136,138
  • 45
  • 251
  • 267
0
votes
2 answers

How to import (install) dependencies (packages) from a global system environment to a virtual environment

I have installed my needed packages (dependencies) in the global system environment instead of my virtual environment (virtualenv) because i have used the command pip install outside of the virtual environment. So i want to know how…
muel
  • 43
  • 1
  • 13
0
votes
1 answer

Which Dependencies File Should I Use for my Dockerfile?

I'm currently learning about Docker. I'm trying to use it in my python project (I'm using Django) In my Dockerfile, I want my image to install the dependencies of my project into each new container. I just created a requirements.txt file using the…
Jeremy
  • 225
  • 1
  • 3
  • 10
0
votes
1 answer

pipenv deleted libraries from my virtual environment?

I am using Homebrew-installed pipenv to manage my virtual environments for Python projects. I navigate to my Python project's folder and use the pipenv shell command to activate the venv. It has worked fine, until today when I noticed that I can't…
AlexZ
  • 85
  • 5
0
votes
1 answer

Resolving python package dependencies

I am trying to lock the Pipfile and running into below error: $pipenv install Pipfile.lock not found, creating… Locking [dev-packages] dependencies… Building requirements... Resolving dependencies... ✘ Locking Failed!…
iDev
  • 2,163
  • 10
  • 39
  • 64
0
votes
2 answers

How Can I generate a requirements file from Pipfile with indexes, without locking?

I want to generate a requirements.txt file from a Pipfile. I've tried several tools that do this (pigar, pipenv-to-requirements, pipfile-requirements) but none of them address indexes Meaning that for the following Pipfile: [[source]] url =…
Roy Menczer
  • 500
  • 1
  • 4
  • 11
0
votes
3 answers

Pipenv on Windows: 'module' object is not callable

I'm having trouble using Pipenv on my Windows 10 machine. Initially, I got a timeout error while trying to run pipenv install and following this answer, I disabled Windows Defender. That got rid of the timeout error and it then seems to…