Skip to content
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

Support for Python3 (pip3) #5

Open
kenorb opened this issue Dec 29, 2020 · 3 comments
Open

Support for Python3 (pip3) #5

kenorb opened this issue Dec 29, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@kenorb
Copy link

kenorb commented Dec 29, 2020

Is it possible to install packages for Python 3?

I've tried:

      - uses: BSFishy/pip-action@v1
        with:
          packages: |
            html.parser

but by default it's using Python 2.

@cfc603
Copy link

cfc603 commented Dec 29, 2020

Did you try using uses: actions/setup-python@v2 instead of uses: actions/setup-python@v1 listed in README.md? See https://github.com/actions/setup-python for more details.

@BSFishy BSFishy added the bug Something isn't working label Dec 29, 2020
@BSFishy
Copy link
Owner

BSFishy commented Dec 29, 2020

As @cfc603 said, make sure you install Python 3 using the correct action. This action first checks if an environment variable named pythonLocation exists (which I believe should be set by the setup-python action), and if that doesn't exist, it will check if python is in the path. I think by default the actions runner has Python installed, which may be the issue if you're not setting it up explicitly.

@maguro
Copy link

maguro commented Feb 4, 2022

IIUC, pythonLocation sets the path, not the binary. On Ubuntu, there is no python binary without a version suffix. We use self-hosted Ubuntu servers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants