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

Docker appears to be using Ubuntu 16.04 and python 2.7 with the latest pip which would cause a syntax Error. #507

Open
atursams opened this issue Mar 21, 2021 · 1 comment

Comments

@atursams
Copy link

Hi,
I tried to build the docker Dockerfile.cuda-8.0 and it failed like so:

Step 5/14 : RUN pip install image                 scipy                 matplotlib                 PyYAML                 numpy                 easydict                 tensorflow-gpu
 ---> Running in 9fc5d4e836d5
Traceback (most recent call last):
  File "/usr/local/bin/pip", line 7, in <module>
    from pip._internal.cli.main import main
  File "/usr/local/lib/python2.7/dist-packages/pip/_internal/cli/main.py", line 60
    sys.stderr.write(f"ERROR: {exc}")
                                   ^
SyntaxError: invalid syntax

This is what I did to use a recent version of python:

.
.
# Get required python modules
RUN pip install --upgrade pip==20.3.4

You get warnings but the code runs.

@atursams
Copy link
Author

I made the changes but I still cannot use the resulting docker image even though it was able to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant