title: WARNING: Could not find packages folder or virtual environment. ModuleNotFoundError: No module named 'xxxxx' in Azure App Services
body: <p>I have the following error in a Python application deployed to linux in Azure App Services.</p>
  
  <pre><code>2019-03-27T21:19:19.356340459Z WARNING: Could not find packages folder or virtual environment.
  2019-03-27T21:19:19.356340459Z   File "/home/site/wwwroot/application.py", line 3, in 
  2019-03-27T21:19:19.356344259Z     from passlib.hash import pbkdf2_sha256
  2019-03-27T21:19:19.356347559Z ModuleNotFoundError: No module named 'passlib'
  </code></pre>
  
  <p>Its the same if I use pandas so doesn't seem to be related to the library.</p>
  
  <p>Although I have added the file to my requirements.txt its not run as part of the installation.</p>
  
  <pre><code>Flask==1.0.2
  passlib==1.7.1
  functools==3.3.0
  </code></pre>
  
  <p>The environment is Linux on Azure App Services. These are the steps I followed,</p>
  
  <p><a href="https://code.visualstudio.com/docs/python/tutorial-deploy-app-service-on-linux" rel="nofollow noreferrer">https://code.visualstudio.com/docs/python/tutorial-deploy-app-service-on-linux</a></p>
  
  <p>I have tried connecting to the environment using the Kudo BASH, but when checking the python version its 2.7 not 3.7 per the deployment. I'm wondering if im in the host os and not the docker container the site is hosted in. (Bug/Issue?). I can find the deployment under /home/site/wwwroot and i have tried using pip to install the requirement.txt. Since it isnt the version of pyton running on the site I assume that's why its failing. It will collect the libaries but not proceed any further.</p>
  
  <p>I am unable to SSH, this seems to be down, it is never able to connect to the site.</p>
  
  <p>I have tried the development and production plans.</p>
  
  <p>I dont want to deploy my own docker as the goal is to have MS Manage the patching of the whole environment.</p>