-
Notifications
You must be signed in to change notification settings - Fork 826
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
unable to execute 'gcc': No such file or directory error: command 'gcc' failed with exit status 1 #418
Comments
@arprasto Thanks for reporting the issue. The WDC library has a dependency on If size is not so much of a concern, you might consider using a different image. With the standard Since |
@ammardodin thanks for your reply. I have a query on "With the 2.7 image, I was able to build successfully." What did you give in your Dockerfile as opposed to i gave |
@arprasto I used |
@ammardodin I doubt if we really need 750MB image to run just hello world application. But yes i was too able to build the image using FROM python:2.7. If you please update the Readme file according to this or else you can close this tkt. Thanks |
@arprasto I understand your point of view. I guess we can add a section in the README for Docker-based installations :). |
You need to install it first by using the following command |
thanks, really hlpful |
in my case it was necesseray to do also this: |
thanks naviden! |
Hello |
I had similar issue on my deployment of a python app to Nvidia Nano. Based on this, there were two errors in my dockerfile. 1st one was related to using slim version of python 3.6.13. 2nd one was that I didn't install gcc package. I recognized that both of these were needed to install Matplotlib that I need in my app Following commands solved my issues. The deployment was succesfull.
|
I have a similar issue when building docker image for aws lambda: aws/aws-lambda-base-images#25
so I am not sure why it is creating the issue... |
For conda users, please |
I'm so in love with u RT |
This works on aws sagemaker notebook :
|
This worked for me on wsl - |
You saved me king |
Expected behavior
pip install --ignore-installed six watson-developer-cloud
Dockerfile RUN should build the image successfully.Actual behavior
pip install --ignore-installed six watson-developer-cloud
has dependency on gcc. Therefore when you give it in Dockerfile than docker image build will get failed with below error:Steps to reproduce the problem
step 1: create a Dockerfile with these below contents:
requirements.txt:
Flask
step 2: execute below cmd to create docker image:
docker image build -t arprasto/python-hello-world:v2 .
However if you add below 2 lines to Dockerfile than issue resolved:
Therefore this need to be added to Readme file.
Code snippet (Note: Do not paste your credentials)
python sdk version
python2.7.13_virtual
python version
python2.7.13_virtual
The text was updated successfully, but these errors were encountered: