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.

--pre not working with requirements file

See original GitHub issue

Environment

  • pip version: 19.1.1
  • Python version: 3.6.8
  • OS: macOS Mojave

Description I have a Requirements file (tf.txt) with this content:

tensorflow --pre

When I do pip install -r tf.txt -U it installs tensorflow 1.14 and not the pre version.

Expected behavior Should thow an error or install the pre version.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
chrahuntcommented, Jul 27, 2019

Same on Linux. As a workaround (and maybe the intended behavior), it works if --pre is on its own line:

--pre
tensorflow
0reactions
pradyunsgcommented, Aug 30, 2020

Thanks for the nudges here @deveshks! ^>^

Read more comments on GitHub >

github_iconTop Results From Across the Web

Option --pre doesn't work in requirements.in #819 - GitHub
The option --pre set in requirements.in doesn't work as expected. Neither --pre package or package==0.0.1 --pre. If --pre passed to the CLI ...
Read more >
How to specify Python requirements by allowing prereleases?
If a Requirement specifier includes a pre-release or development version (e.g. >=0.0.dev0 ) then pip will allow pre-release and development ...
Read more >
Requirements File Format - pip documentation v22.3.1
Requirements files serve as a list of items to be installed by pip, ... This is will not work with other build-backends or...
Read more >
Why and How to make a Requirements.txt - Robert Boscacci
In short, we generate and share requirements.txt files to make it easier for other ... The problem we run into when we share...
Read more >
pip install — pip 10.0.0.dev0 documentation
Description¶. Install packages from: PyPI (and other indexes) using requirement specifiers. VCS project urls. Local project directories.
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