-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[question] How to use poetry on Ubuntu? #1543
Comments
I even tried this trick:
Notice "python3" at the end, but it didn't solve my problem. I still get the same error, i.e. it's still using Python 2.7. |
@jabbalaci you can create a virtualenv manually, activate it and then poetry will use that one. E.g.
|
@pmav99 Thanks, but it's a workaround solution. If poetry wants to be better than pipenv, then it should just work out of the box. |
OK, I found a way (using #721): Install with Python 3:
Then edit the file
That is, The bad news is that if you update poetry to a new version, this change will be overwritten very likely. |
Thanks for this solution. |
Thanks @jabbalaci fixed my issue too. |
I think this is essentially a duplicate of #721 |
@matthijskooijman Previously, I put a reference on #721 . |
this workaround is not working for me on ubuntu 18.04 |
@danieleades Did you install it with python3? Notice that I have python3 at the end of this line:
Under Ubuntu, |
@jabbalaci yep. |
For the record, installing using pipx is probably much easier... |
Hello @ all, I'm closing this issue, because the original issue is resolved in poetry 1.0. If poetry is installed with python2 and a Furthermore, you can set the python executable, to use for the venv, with the new More information are available in the docs. |
Hi @finswimmer i've just tested this on ubuntu- I don't think its fair to say the issue is completely resolved. I didn't test installing with python2, it's practically 2020 after all ;) |
I faced the same issue when I try to install poetry on clean Ubuntu 18.04 as it does not install built-in |
EDIT: Don't be a fool like me & jump to conclusions, |
see env file into poetry hidden dir |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I made a poetry-based project on Manjaro, where python3 is the default.
On another machine, which has Ubuntu 18.04, I wanted to re-create the virt. env. but I got the following error:
Under my Ubuntu python points to Python 2.7, it's true, but Ubuntu has a python3 symlink that points to Python 3.6.
I think poetry should pick Python 3 automatically. But anyway, how can I create a Python 3 virt. env. in this case? Thanks.
The text was updated successfully, but these errors were encountered: