Comments (1)
If you're using a self-hosted runner, you need to setup the tools cache yourself. You can find instructions here: https://github.com/actions/setup-python#using-setup-python-with-a-self-hosted-runner
If you only need one version of Python, you can avoid using setup-python
and whatever version of Python you have in PATH will be used.
Why is setup needed? Hosted runners that we maintain have multiple python versions cached and installed when the images get built. You can read up about it here: https://github.com/actions/setup-python#hosted-tool-cache
Essentially, if you're using one of our hosted runners, all that setup-python
is doing is changing the PATH
variable to point to a version of Python that is already installed. If you're using a self-hosted runner, you have to download and setup the necessary versions of Python first yourself.
from setup-python.
Related Issues (20)
- Error: 'python3.11' runtime is not supported HOT 6
- Prioritize RUNNER_TOOL_CACHE over AGENT_TOOLSDIRECTORY HOT 4
- python <3.10 fails on macos-14 with `dyld: Library not loaded` HOT 6
- Cache key conflict HOT 2
- Can't install python 3.12 on linux x64 HOT 10
- "pip cache is not found" (/home/runner/.cache/pip) HOT 7
- Demonstrate model evolution tracking HOT 1
- Wrong python version installed HOT 7
- J HOT 1
- Slow download HOT 4
- Caching conflicts when using `extra` dependencies HOT 2
- Unable to build requirement with pip HOT 4
- bad setuptools installation in actions/setup-python@v5 HOT 3
- my_script.py HOT 2
- Recommendations for caching poetry dependencies causes the wrong python version to be used for poetry install HOT 10
- Allow passing installer args to the Windows MSI HOT 1
- Importing psycopg2 (installed via pip) reports: ImportError: /opt/hostedtoolcache/.../3.13.0-alpha.6/.../psycopg2/_psycopg.cpython-313-x86_64-linux-gnu.so: undefined symbol: _PyInterpreterState_Get HOT 1
- macos-14-arm64 with provisionner 2.0.361.1+33a726b54233caea13315dba3887b0e7c5a1d482 can no longer load Python extension HOT 6
- Python 3.8 and 3.9 not found on macOS HOT 11
- Python Path is always first HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from setup-python.