-
Notifications
You must be signed in to change notification settings - Fork 16
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
Fix Python38 Installation Issue #55
base: PublicCI
Are you sure you want to change the base?
Changes from 3 commits
2462574
82fc37d
fc09c62
7abbddf
8e194ff
3b0c4cc
94c43d5
1a37d7b
ea89741
4011642
9b6932c
30c011d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env bash | ||
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# ============================================================================== | ||
|
||
cd /usr/src | ||
wget https://www.python.org/ftp/python/3.8.2/Python-3.8.2.tgz | ||
tar xzf Python-3.8.2.tgz | ||
cd Python-3.8.2 | ||
./configure --enable-optimizations --with-ensurepip=install --prefix=/usr/ | ||
make altinstall | ||
rm /usr/src/Python-3.8.2.tgz | ||
rm -rf /usr/src/Python-3.8.2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we want to add a link so /usr/bin/python point to this new python3.8? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It does not seem necessary. What is the benefit of letting /usr/bin/python point to python3.8? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 0 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sounds good |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From Google's container tensorflow/tensorflow:devel, they're using Python 3.8.10, do we want to install the same version as they have just for consistence?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I will update to 3.8.10 and re-test for a while.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests with 3.8.10 look fine. https://tensorflow-ci.intel.com/view/Monitor%20These/job/tensorflow-oob-linux-cpu/2296/consoleFull