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
Installing HTTPie on Python 2.7 #911
Comments
You use Python 2, which is already end of life. httpie dropped Python 2 support in version 2.0.0 and is now compatible with Python 3 only. You can try to run |
I try another way to change the default python version, because i have both of them thanks @exploide and @jakubroztocil : |
This has now been resolved — |
When I was trying to install the httpie in my ubuntu terminal in windows and I use these command lines which is in the documentation :
pip install --upgrade pip setuptools
pip install --upgrade httpie
I try to check the version with
http --version
and then i got this error:
asoom$ http --version
Traceback (most recent call last):
File "/home/abdallah/.local/bin/http", line 8, in <module>
sys.exit(main())
File "/home/abdallah/.local/lib/python2.7/site-packages/httpie/__main__.py", line 10, in main
from .core import main
File "/home/abdallah/.local/lib/python2.7/site-packages/httpie/core.py", line 21
args: List[Union[str, bytes]] = sys.argv,
^
SyntaxError: invalid syntax
and i got the same error with any other http command.
The text was updated successfully, but these errors were encountered: