Unable to import package in python through bash prompt RRS feed

  • Question

  • I am trying to import azure.functions in azure using bash prompt. I installed the package but I am unable to import it. Please do help me resolve the issue.
    Thursday, May 2, 2019 5:09 AM

All replies

  • Hi Ajinkya2210,

    Currently, Azure Functions only supports Python 3.6.x (official CPython distribution).

    To locally develop and test Python functions, you must work in a Python 3.6 environment. Run the following commands to create and activate a virtual environment named .env.

    Bash or a terminal window:

    python3.6 -m venv .env

    source .env/bin/activate

    For more details, refer “Python version and package management” and “Create function- Python”.

    Hope this helps.

    Thursday, May 2, 2019 10:39 AM

    I tried running the command but it is throwing error.

    Friday, May 3, 2019 6:08 AM
  • Hi Ajinkya2210,

    Before you start, you must have the following:

    Friday, May 3, 2019 7:18 AM
  • Hi Ajinkya2210,

    Just checking in to see if the above answer helped. If this answers your query, do click “Mark as Answer” and Up-Vote for the same. And, if you have any further query do let us know.

    Monday, May 13, 2019 9:33 AM

    We were still getting the issue so we decided to deploy the code in docker image and run it there.

    Tuesday, July 16, 2019 5:19 AM