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.

Set default python version (--two/--three) based on requires.python_version

See original GitHub issue

So you don’t need to care which python version project requires, if it’s specified in the Pipfile.

It may go further and use specified there python version (instead of just --two/--three switch).

if it’s possible to get that upstream I’m happy to work on PR.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
dahliacommented, Apr 27, 2017

If we did implement something like this, it may be difficult to detect where a certain python version lives on the system. We can hope that pythonX.X is symlinked from /usr/bin but I don’t know if that’s going to be guaranteed.

Tox’s approach might work for Pipenv as well. Tox simply shows an error when it fails to find the interpreter.

0reactions
iandanforthcommented, Jan 19, 2018

For anyone coming here from a search the official docs now describe how this functionality can be used - Specifying Versions of Python

Read more comments on GitHub >

github_iconTop Results From Across the Web

How Should I Set Default Python Version In Windows?
This is if you have both the versions installed. Go to This PC → Right-click → Click on Properties → Advanced System Settings....
Read more >
The right and wrong way to set Python 3 as default on a Mac
This method, of using Homebrew to manage our Python environment, is a good starting place, and it made sense to me at the...
Read more >
Set Default Python Version To Python2 - YouTube
Hello Guys, in this video I going to cover How To Change the Default Python Version To Python3 OR Python2 & pip version....
Read more >
How to set default Python Version in Windows 10/8/7 - YouTube
How to set default Python Version in Windows 10/8/7. 18K views 3 years ago. ATOM. ATOM. 6.38K subscribers. Subscribe.
Read more >
How to set Python3 as a default python version on MacOS?
Change the default python symlink to the version you want to use from above. Note that, we only need to choose the one...
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