Questions tagged [pipfile]

62 questions
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
46
votes
2 answers

With pipenv, how to specify the minimum python version in the pipfile?

Is there a way in pipenv to specify the minimum version of python in the Pipfile? Would something like this work? [requires] python_version = ">=python 3.5"
Jasonca1
  • 4,848
  • 6
  • 25
  • 42
25
votes
1 answer

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 irrelevant files and directories for brevity. The core…
Dennis
  • 56,821
  • 26
  • 143
  • 139
12
votes
5 answers

Executing pipfile scripts

How can I execute the scripts defined in the Pipfile? Following the syntax found here, I defined the scripts section in my pipfile as follows: [scripts] tests = "bash ./run-tests.sh" After running $ pipenv install, how can I call the tests…
cstoltze
  • 426
  • 1
  • 4
  • 10
11
votes
1 answer

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 install it works well: $ pipenv install requirements.txt…
Ikar Pohorský
  • 4,617
  • 6
  • 39
  • 56
10
votes
3 answers

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 the corresponding lock files…
Qiulang
  • 10,295
  • 11
  • 80
  • 129
10
votes
2 answers

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 == 'linux' or sys_platform == 'darwin' This is…
Gabriel G.
  • 464
  • 4
  • 14
7
votes
2 answers

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 pip install (some-file) How to do?
tamuhey
  • 2,904
  • 3
  • 21
  • 50
7
votes
1 answer

How to specify os-specific wheel files in the Pipfile

I'm trying to use the pipenv and pytorch. To install pytorch in windows, I have to write following codes into the Pipfile: [packages] torch = {file = "http://download.pytorch.org/whl/cpu/torch-0.4.1-cp37-cp37m-win_amd64.whl"} However, the wheel…
yunik1004
  • 71
  • 2
7
votes
1 answer

Why are there two hashes in my Pipfile.lock for one module?

I've started using pipenv and installed the flask package. In my Pipfile.lock there is this entry: "flask": { "hashes": [ "sha256:2271c0070dbcb5275fad4a82e29f23ab92682dc45f9dfbc22c02ba9b9322ce48", …
Joern Boegeholz
  • 533
  • 1
  • 8
  • 25
6
votes
2 answers

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(./../algosec) this is the error message I get when I…
Daniel
  • 1,895
  • 9
  • 20
6
votes
2 answers

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
  • 2,451
  • 1
  • 24
  • 26
6
votes
1 answer

How do I sync values in setup.py / install_requires with Pipfile / packages

If you work on a project that uses both setup.py and Pipfile you often find the same values in: Pipfile/[packages] and setup.py/install_requires. Does anyone know how I can tell Pipfile to use values from setup.py/install_requires for [packages]?
Rotareti
  • 49,483
  • 23
  • 112
  • 108
5
votes
0 answers

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 can reproduce the same exact working environment…
Ravexina
  • 2,406
  • 2
  • 25
  • 41
5
votes
1 answer

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), so I have a Pipfile and a Pipfile.lock. Do I…
rmd_po
  • 381
  • 1
  • 4
  • 12
1
2 3 4 5