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.

How to install prerelease version using pipenv?

See original GitHub issue

I tried installing Django prelease using pipenv, here are the steps I followed

  • pipenv lock --pre

  • pipenv install --pre Django

And when I check the pip freeze it shows me correct version of the Django

(fiobot-dPUFI04r) simon@ENGINE:~/Nightybuild/fiobot$ pip freeze
Django==2.0b1
gunicorn==19.7.1
pytz==2017.2

However when I looked into Pipfile.lock it shows this "version": "==1.11.6"

I deployed to Heroku my code doesn’t run because my code needs pre release version of Django how to solve this ?

My environment
  1. OS Type: Ubuntu 16.04 LTS
  2. Python version: Python 3.6.3
  3. Pipenv version: pipenv, version 8.2.7

Issue Analytics

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

github_iconTop GitHub Comments

6reactions
erinxoconcommented, Oct 24, 2017

It looks like the allow_prerelease environment marker isn’t respected when you do pipenv lock. You have to do pipenv lock --pre or pipenv install --pre django for now. pipenv install relocks the file by default so it uses the --pre flag. For now you’ll have to use either of those two methods until we get the bug fixed!

6reactions
rajasimoncommented, Oct 24, 2017

Oh here is my Pipfile. And I can’t mention the exact version of Django in package because that’s not working.

[[source]]

url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"


[dev-packages]



[packages]

django = "*"
gunicorn = "*"


[requires]

python_version = "3.6"


[pipenv]

allow_prereleases = true
Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I upgrade a pipenv package and ignore prerelease ...
Try installing a specific version of black. #!/usr/bin/env bash pipenv install requests pipenv install black==18.9b0 # the latest as of ...
Read more >
pipenv Documentation - Read the Docs
The recommended way to install pipenv on most platforms is to install from pypi using pip: $ pip install --user pipenv. Or, if...
Read more >
Frequently Encountered Pipenv Problems - Read the Docs
Make sure you're running the newest Pipenv version first! ... Pipenv does not install pre-releases (i.e. a version with an alpha/beta/etc. suffix, ...
Read more >
Common Pipenv Errors and How to Solve Them: Why Won't it ...
When you install a package with pipenv install , the Pipfile is ... locking fails is that we attempt to install a package...
Read more >
pipenv · PyPI
Note that it is strongly recommended that you install any version-controlled dependencies in editable mode, using pipenv install -e , in order to...
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