[PYTHON] How to ssh into Azure App Service and enable venv

I don't know if this is the best way to do it, but it worked.

# PYTHON_VERSION=$(python -c "import sys; print(str(sys.version_info.major) + '.'+ str(sys.version_info.minor))")
# export PYTHONPATH=$PYTHONPATH:"/antenv/lib/python$PYTHON_VERSION/site-packages"

This didn't work.

# source /antenv/bin/activate

Recommended Posts

How to ssh into Azure App Service and enable venv
Deploy from GitHub Actions to Azure App Service
How to use venv
Sample to put Python Flask web app on Azure App Service (Web App)
How to import CSV and TSV files into SQLite with Python
How to configure CORS settings for Azure storage service in Python
How to install and use Tesseract-OCR
How to install and configure blackbird
How to use .bash_profile and .bashrc
How to install CUDA and nvidia-driver
How to install and use Graphviz
How to solve slide puzzles and 15 puzzles
(Diary 1) How to create, reference, and register data in the SQL database of Microsoft Azure service with python
[Linux] How to subdivide files and folders
How to package and distribute Python scripts
How to split and save a DataFrame
How to install and use pandas_datareader [Python]
How to enable SSL (TLS) in Apache
python: How to use locals () and globals ()
[Python] How to calculate MAE and RMSE
How to use Python zip and enumerate
How to use is and == in Python
How to use pandas Timestamp and date_range
How to install fabric and basic usage
How to write pydoc and multi-line comments
How to make VS Code aware of the venv environment and its benefits
How to use Service Account OAuth and API with Google API Client for python
The story of switching the Azure App Service web system from Windows to Linux