Questions tagged [pipfile]

62 questions
4
votes
0 answers

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 git clone in order to download each plugin from…
4
votes
0 answers

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 virtualenv is up-to-date or requires pipenv…
RaamEE
  • 3,017
  • 4
  • 33
  • 53
4
votes
1 answer

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 job, but I am not sufficiently acquainted with the…
ubadub
  • 3,571
  • 21
  • 32
3
votes
1 answer

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…
room13
  • 883
  • 2
  • 10
  • 26
3
votes
1 answer

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 variables: [packages] pack1 = {editable = true,…
julste
  • 313
  • 3
  • 10
3
votes
0 answers

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 Python3? Is this a bug? I don't think it is…
Sam Dillard
  • 670
  • 1
  • 5
  • 18
3
votes
1 answer

pipenv: packaging.specifiers.InvalidSpecifier: Invalid specifier

I'm getting this error when recreating Pipfile.lock: packaging.specifiers.InvalidSpecifier: Invalid specifier '==0.5.2-auto' I think it has something to do with the -auto suffix, but it works on a different computer for some reason. The traceback…
JohnEye
  • 6,436
  • 4
  • 41
  • 67
2
votes
1 answer

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 and our private projects, which had worked in the…
AHalbert
  • 316
  • 5
  • 23
2
votes
1 answer

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] awesome-package = {editable = true, path =…
Thomas Steinbach
  • 1,019
  • 1
  • 9
  • 19
2
votes
0 answers

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! Locking [packages] dependencies... Building…
mostafa
  • 188
  • 2
  • 10
2
votes
4 answers

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 its result is: Creating a virtualenv for this…
mostafa
  • 188
  • 2
  • 10
2
votes
1 answer

"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 until Installing dependencies from Pipfile.lock…
muny
  • 87
  • 7
2
votes
1 answer

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 --trusted-host download.pytorch.org How can I…
room13
  • 883
  • 2
  • 10
  • 26
2
votes
2 answers

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" ...
2
votes
1 answer

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 + Pipfile.lock instead of requirements.txt this is…
chiemNZ
  • 21
  • 2