Update the Python package scripts to use Python 3.10 explicitly.
Failure: 1. From the build scripts: ``` + ./tools/build_pip_package.sh Python 3.8.10 ``` 2. But `tensorflow-probability` does not support Python 3.8, https://pypi.org/project/tensorflow-probability/ The fix is to update TFP build scripts to use Python 3.10 explicitly because it appears there are unsupported version of Python on the build machines. PiperOrigin-RevId: 572339377
This commit is contained in:
parent
96b099f5c7
commit
fd7cc7607f
3 changed files with 3 additions and 3 deletions
|
@ -22,7 +22,7 @@ main() {
|
||||||
trap "rm -rf ${temp_dir}" EXIT
|
trap "rm -rf ${temp_dir}" EXIT
|
||||||
|
|
||||||
# Create a virtual environment
|
# Create a virtual environment
|
||||||
python3 -m venv "${temp_dir}/venv"
|
python3.10 -m venv "${temp_dir}/venv"
|
||||||
source "${temp_dir}/venv/bin/activate"
|
source "${temp_dir}/venv/bin/activate"
|
||||||
python --version
|
python --version
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
|
|
|
@ -22,7 +22,7 @@ main() {
|
||||||
trap "rm -rf ${temp_dir}" EXIT
|
trap "rm -rf ${temp_dir}" EXIT
|
||||||
|
|
||||||
# Create a virtual environment
|
# Create a virtual environment
|
||||||
python3 -m venv "${temp_dir}/venv"
|
python3.10 -m venv "${temp_dir}/venv"
|
||||||
source "${temp_dir}/venv/bin/activate"
|
source "${temp_dir}/venv/bin/activate"
|
||||||
python --version
|
python --version
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
|
|
|
@ -22,7 +22,7 @@ main() {
|
||||||
trap "rm -rf ${temp_dir}" EXIT
|
trap "rm -rf ${temp_dir}" EXIT
|
||||||
|
|
||||||
# Create a virtual environment
|
# Create a virtual environment
|
||||||
python3 -m venv "${temp_dir}/venv"
|
python3.10 -m venv "${temp_dir}/venv"
|
||||||
source "${temp_dir}/venv/bin/activate"
|
source "${temp_dir}/venv/bin/activate"
|
||||||
python --version
|
python --version
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
|
|
Loading…
Reference in a new issue