How to fix bash command not found error in DALL-E tutorial

Leabriah Spencer 45 Reputation points

Trying to follow along the tutorial

but when I try to run the code at the end I receive this error:

"bash: command not found"

Also: "chmod +x" command didnt resolve my issue.

Any feedback is helpful. Thank you.

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
1,442 questions
{count} votes

Accepted answer
  1. dupammi 1,295 Reputation points Microsoft Vendor

    Hi @Leabriah Spencer ,

    Thank you for using Microsoft Q&A.

    Below is the error that I was able to repro at my end:

    dupammi [ ~/azure-openai/Labfiles/05-image-generation/Python ]$
    bash: command not found

    Instead of above command, please use below command:

    dupammi [ ~/azure-openai/Labfiles/05-image-generation/Python ]$ python

    Command : python

    It gives you a prompt like below.

    Enter a prompt to request an image: 

    Hope this helps. Thanks!

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

1 additional answer

Sort by: Most helpful
  1. Q&A Assist
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To fix the "bash: command not found" error in the DALL-E tutorial, you need to make sure that the file has executable permissions. You can do this by running the following command in your terminal:

    chmod +x

    This will give the file executable permissions, allowing you to run it as a command.


    0 comments No comments