Questions tagged [pipfile]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
111 views

Why did my pypi choose a tarball hash yesterday vs now its using a wheel hash?

After the new version for python-crontab (2.7.0) got uploaded yesterday, my pipeline builds started to fail because there was a new hash for the same old pinned version (2.6.0). Local builds fail too ...
Andrew's user avatar
  • 11
0 votes
0 answers
22 views

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 ...
Nathan Wailes's user avatar
0 votes
0 answers
778 views

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 <module> ...
Docker's user avatar
  • 159
0 votes
0 answers
109 views

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 ...
liv2hak's user avatar
  • 14.5k
1 vote
2 answers
548 views

CDKTF not recognizing libraries outside of python standard library

I am unable to run cdktf because cdktf won't work with packages installed from PyPI. I need cdktf to be able to install / access packages installed from PyPI. $ cdktf diff ⠏ Synthesizing [2022-11-...
jcbcodes's user avatar
2 votes
1 answer
464 views

Pipfile - why is "name" a required field in source?

I recently updated python (3.9.13)/ pip (22.1.2)/ pipenv (2022.9.20) while setting up a new environment for a project. I had an existing Pipfile, using AWS CodeArtifact as the source containing PyPI ...
AHalbert's user avatar
  • 316
0 votes
1 answer
215 views

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 ...
bukzor's user avatar
  • 37.5k
0 votes
1 answer
872 views

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 ...
Flimm's user avatar
  • 137k
2 votes
1 answer
1k views

pipenv / pipfile - Install different package version in dev

Is it somehow possible to install a different version of a Python package in dev? Obviously the Pipfile coul look like following: [packages] awesome-package = "==1.2.3" [dev-packages] ...
Thomas Steinbach's user avatar
0 votes
2 answers
653 views

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 <package-name> ...
muel's user avatar
  • 53
4 votes
0 answers
486 views

Project with multiple Pipfiles

My Project's structure : root |-Pipfile |-main.py | |-first_plugin | |-Pipfile | |-main.py |-second_plugin | |-Pipfile | |-main.py The projects's main.py functionalities are to : Run ...
Vaggelis_Lazarakis's user avatar
0 votes
1 answer
338 views

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 ...
Jeremy's user avatar
  • 245
1 vote
1 answer
1k views

Is it possible to remove a dependency from the Pipfile.lock file and keep other dependencies?

I have been trying to remove a dependency from a build and it continues to install even when it is not specified in the Pipfile (i.e: depdendency = "*"). I can say pipenv uninstall ...
Justin Reddick's user avatar
6 votes
2 answers
3k views

File "PyInstaller/loader/pyimod03_importers.py", line 546, in exec_module, ModuleNotFoundError: No module named 'x'

EDIT I'm trying to import algosec.models in a file inside the algobot package. I've tried to add --hidden-import algosec, I've also tried to add the path before importing, using sys.path.append(./../...
Daniel's user avatar
  • 1,905
2 votes
0 answers
972 views

Pipenv: There are incompatible versions in the resolved dependencies

I am using $ pipenv install to update the Pipfile.lock , it just complains with this error: Locking [dev-packages] dependencies... Building requirements... Resolving dependencies... ✔ Success! ...
mostafa's user avatar
  • 188
2 votes
4 answers
5k views

ModuleNotFoundError: No module named 'virtualenv.seed.via_app_data

I had installed virtualenv by sudo -H pip3 install virtualenv, and created a venv by virtualenv, but now I can't create env in my new Django project that includes Pipfile. I tried: $ pipenv shell But ...
mostafa's user avatar
  • 188
1 vote
0 answers
187 views

PipEnv's Pipfile sections

I am researching Pipenv's Pipfile and its sections. More specifically, the requires section. Sadly I cannot find any information about it outside the specification of the Python version. Is there ...
NFSpeedy's user avatar
  • 171
10 votes
3 answers
5k views

What is usage of "conflict" in composer.json and what should I do with it?

I found the composer.json & composer.lock(php) has conflict section (not to be confused with merge conflict ). The other similar files like package.json/yarn.json (nodejs) or Pipfile (python) and ...
Qiulang's user avatar
  • 10.4k
1 vote
0 answers
372 views

Locking Failed! with pipenv lock --clear

So everything was working correctly until I tried to install the "requests" library for flask. In my virtual environment I ran "pipenv install requests" and got this fun error ...
Matt Taylor's user avatar
2 votes
1 answer
1k views

"docker-compose up" failed to build, The command '/bin/sh -c pipenv install' returned a non-zero code: 1

Cloned a project from github and in the README file it had the instructions to do docker-compose up --build npm run dev so I typed docker-compose up --build in my terminal. It seemed to be working ...
muny's user avatar
  • 87
5 votes
0 answers
506 views

Update installed packages without generating Pipfile.lock

I've read an article on Pipenv to understand some concepts like the purpose of a lock file and I think that I'm having some misconceptions. It discusses that having a Pipfile.lock insures us that we ...
Ravexina's user avatar
  • 2,416
0 votes
1 answer
307 views

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 ...
AlexZ's user avatar
  • 85
2 votes
1 answer
1k views

pipenv install pytorch cpu + specific version

I ned to install a specific version of pytorch cpu mode. With pip I would do it like this: pip install torch==1.2.0+cpu torchvision==0.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html --...
room13's user avatar
  • 923
4 votes
1 answer
3k views

pipenv/pip install from git commit/revision id

I would like to install a package from a git repository specifying a commit id using pipenv (I belive it should be very similar If I would use pip) so far I tried: pipenv install "git+ssh://git@...
room13's user avatar
  • 923
3 votes
1 answer
5k views

Pipenv Pipfile - installing package from private repo

I'm trying to install a package via Pipfile from a private repo. Using the following syntax, VScode is asking for a password (in console it is locking forever), although my token is exported to my env ...
julste's user avatar
  • 313
0 votes
1 answer
1k views

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... ✘...
iDev's user avatar
  • 2,163
1 vote
2 answers
2k views

How to fix pipenv error: Could not find a version that matches?

I have the following pipfile: [[source]] name = "pypi" url = "${PYPI_ENDPOINT}" verify_ssl = true [dev-packages] flask-shell-ipython = "==0.4.*" ipython = "==7.4.*&...
Ivan Petrushenko's user avatar
2 votes
2 answers
870 views

How to run "cd" command in a Pipfile's [script]?

I need to make something like this in a Pipfile: ... [scripts] my_script = "cd folder" ...
Diogo Duarte's user avatar
5 votes
1 answer
9k views

requirements.txt vs Pipfile in heroku flask webapp deployment?

I'm trying to deploy a Flask webapp to Heroku and I have seen conflicting information as to which files I need to include in the git repository. My webapp is built within a virtual environment (venv), ...
rmd_po's user avatar
  • 381
2 votes
1 answer
2k views

An error occured while installing flair and pytorch with pipenv in windows with Pycharm

I am having problems installing the python packages flair and pytorch via pipenv and have not been able to resolve this issue yet. Since I am trying to version my python git repository with Pipfile + ...
chiemNZ's user avatar
  • 21
1 vote
1 answer
1k views

cannot import name 'UnpickleError' from rq.exceptions

I get an error when i run my image with docker-compose this is my pipfile with the library rq i try to up the image but i get an error in django-rq, but i not change this library i only add in my ...
Kevin's user avatar
  • 11
-1 votes
1 answer
612 views

Get error when i add a new library to my pipfile and run docker-compose

Hi i add a library pyodbc into my pipfile, when i run the command docker-compose up app-name and run the dockerfile config i get an error when try to install dependency from pipfile.lock my python ...
Kevin's user avatar
  • 11
2 votes
1 answer
3k views

my pipenv doesnt create a pipfile and pipfile.lock in any of my projects folders anymore

It used to automatically create these files in the folder I was working in, in the command line. If I were to say install django... C:\Users\Admin\Desktop\Djangoproj>pipenv install django ...
triggercut321's user avatar
3 votes
0 answers
64 views

Mode() function error's Traceback shows `xrange()` being called by statistics module when using Python3.7

I'm writing a program in Python3.7 and using the statistics module for the mode() (and more) function. Why is the statistics module in Python3 calling xrange() when that function doesn't exist in ...
Sam Dillard's user avatar
1 vote
3 answers
4k views

install packages in virtual environment with pipenv from an environment.yml file

i'm getting started with pipenv, however, I want to reproduce a project of someone else who worked with conda. I have the corresponding environment.yml file at hand and want to load the required ...
Olmo's user avatar
  • 335
1 vote
1 answer
581 views

Keeping Pipfile Updated

I just started a new Django project and use Postgresql as my database, so I installed psycopg2 to make it work properly. When i deployed the project in the beginning the app did not work because ...
Daniel's user avatar
  • 963
4 votes
0 answers
268 views

How to know if a virtualenv requires a sync in order to avoid running pipenv sync for every job deployed on Jenkins

I am running Python 3.7 on Jenkins' slaves within a virtualenv that is created from a Pipfile.lock that I store in the project's git. For every job I deploy on the slave, I need to know if the ...
RaamEE's user avatar
  • 3,027
0 votes
2 answers
968 views

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 ...
Roy Menczer's user avatar
2 votes
3 answers
4k views

Python 3 - How do you re-create your Pipfile?

I am a major Python noob, and I made the mistake of manually deleting my Pipfile and Pipfile.lock, thinking that they would eventually regenerate. How can I re-create these files?
Brent Heigold's user avatar
1 vote
2 answers
961 views

How to freeze a dev requirements and generate to dev.txt with pipenv? (Only Dev packages/dependencies)

Let's take an example of Pipfile below. Here I would like to freeze only ipdb to dev.txt [[source]] name = "pypi" url = "https://pypi.org/simple" verify_ssl = true [dev-packages] ipdb = "*" [...
bkawan's user avatar
  • 1,171
11 votes
1 answer
3k views

Is it possible to specify `--no-binary :all:` in the Pipfile?

I'd like to switch to pipenv, but converting my current requirements.txt is not 1:1. The requirements.txt contains: ... lxml==3.8.0 --no-binary :all: pandas==0.23.4 ... So, when I run pipenv ...
Ikar Pohorský's user avatar
1 vote
1 answer
1k views

Pipenv: Specify local version of python package in pipfile

I have a pipfile that looks something like this: [packages] pyarrow = "*" tensorflow = "==1.8.0" h5py = "*" I have another package, xyz, that exists in a github repo. I've cloned that repo, made ...
anon_swe's user avatar
  • 8,811
1 vote
2 answers
195 views

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 ...
Dotty's user avatar
  • 48
7 votes
2 answers
8k views

How to pip install packages written in Pipfile without creating virtualenv?

I created a package, containing Pipfile, and I want to test with docker. I want to install packages written in Pipfile with pip, without creating virutalenv. # (do something to create some-file) RUN ...
tamuhey's user avatar
  • 2,914
1 vote
0 answers
1k views

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 ...
Pomme.Verte's user avatar
  • 1,782
2 votes
1 answer
929 views

How to see conda installed packages in Pipfile

According to Pipenv doc (https://pipenv.readthedocs.io/en/latest/advanced/#pipenv-and-other-python-distributions), one can "reuse Conda–installed Python packages, use the --site-packages flag": $ ...
jackofnone's user avatar
10 votes
2 answers
5k views

How to specify multiple sys_platforms with Pipenv

I'm trying to use Pipenv to specify a particular package to only install on Linux or Mac. According to pep496, I should be able to do something like this in a requirements file. unicon; sys_platform ==...
Gabriel G.'s user avatar
6 votes
2 answers
3k views

What's the difference between `pipenv install` and `pipenv lock`?

Given that a Pipfile exists, it seems that both would install all dependencies from the Pipfile, and update Pipfile.lock. So, what is the difference?
Konstantin's user avatar
  • 2,451
25 votes
1 answer
27k views

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 ...
Dennis's user avatar
  • 57k
4 votes
1 answer
1k views

Parser for Pipfiles (get a list of all packages used in a Pipfile)

Is there any parser out there for reading in a Pipfile and returning a list of all packages used in the Pipfile? If not, how would one go about this? I was thinking a regular expression could do the ...
ubadub's user avatar
  • 3,601