-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop Python 2 support #685
Comments
One reason is that some systems ship with python2 only (e.g. macOS), and python3 is a non-trivial dependency to require. |
@ilovezfs it looks like there's already a lot formulas with python3 in dependencies. |
@nvbn sure but the vast majority use python2. It just feels like a really heavy dependency for something like this, not to mention that it has over 14,000 installs per month. |
Anyway, it's obviously up to you, but I don't think it's accurate to say there is "no reason" to support python2. |
@ilovezfs yep, it's a bit more complicated than I thought. |
@HoweChen install it with python3 :) |
@ilovezfs |
@HoweChen it's a HEAD install? |
@ilovezfs No, it's not. When I try to install thefuck with I thought the formula of thefuck on homebrew should add be added a new argument |
@HoweChen Yes it makes sense a HEAD build fails. I don't understand why you're seeing the warning though. That doesn't seem to be in version 3.21. Which version do you have installed? |
@ilovezfs |
It sounds like maybe you have it installed via |
@ilovezfs Yeah you are right, I have uninstalled the pip2 version. Thank you very much. |
@HoweChen you're welcome! |
@nvbn I guess we'll depend on |
@ilovezfs thanks, would it be possible to have an option to install it with Python 2? In case some users have custom rules that work only with Python 2. |
@MichaelKim0407 you just need to upgrade to 3.23. |
@nvbn OK, thanks |
The easiest way to skip the error is to uninstall The Fuck. I can't upgrade to Python 3 until the next Ubuntu LTS is released and tested in production. |
Just comment out ...
|
Or: It was nice to have on the off chance I needed to work directly on a web server, but I have way too many servers to mess with editing the files. |
why not just pin the version? |
I assume this would work:
|
That appears to work, thanks. |
@AntonOlsen you're welcome! |
@AntonOlsen current LTS has python 3.5 (even 14.04 has python 3.4), and it doesn't interfere with python 2, after installation python 2 still be used by default. So something like this shouldn't break anything: pip uninstall thefuck
apt install python3 python3-dev python3-pip
pip3 install thefuck |
I need do this on my mac, because pip command is not recognized, but pip2 command does
|
For me the new version still prints the annoying warning. So I suppressed it in
|
BTW is there a way to tell it to use Python 3.5 if I have also 2.7 installed and it is the default (i.e. /usr/bin/python is a symlink to python2.7)? Thanks |
Required by thefuck. See nvbn/thefuck#685
Required by thefuck. See nvbn/thefuck#685
On Mint 19, I can't use pip3 to install:
|
For those who still on Python 2, the annoying warn info when login can be removed by: |
I'm not a prude but your choice of name for your program is tacky at best and offensive to some. As a manager I would never allow vulgarities in the source code or otherwise. It just not professional IMO. |
@tgunr What does this have to do with dropping Python 2? I'm offended by your lack of attention to the topic! |
As a manager, it's surely unusual to say :
But as a developper, it's a daily task to manage fucks :-(
Yep, you're right, it's not a professional tool provided by an inovative startup to reduce human errors... As a Manager, you can see it as the best outlet : a free punchbag for opeational console users. BTW, this kind of jokes are alerady there in all the things : the Digital World is full of them. |
Python 2 has officially reached end-of-life (~7 months ago) and many packages are Python 3 only. |
Python 2 support makes code more complicated and slow downs development.
And as Python 3 already exists almost nine years, it seems like there's no reason to support Python 2 nowadays.
The text was updated successfully, but these errors were encountered: