- nuget 에서 지원하는 파이썬 3.6을 설치해봅시다.
- 함수 앱 > 플랫폼 기능 > 고급도구 (KUDU) > Debug Console > CMD
- tools 디렉토리에 파이썬3 설치
CMD> nuget.exe install -Source https://www.siteextensions.net/api/v2/ -OutputDirectory D:\home\site\tools python361x64
- Azure Function에서 접근가능한 경로에 Python3 이동
CMD> mv /d/home/site/tools/python361x64.3.6.1.3/content/python361x64/* /d/home/site/tools/
-
지금부터 실행되는 Azure Function은 d:\home\site\tools\python 을 통해 실행됩니다.
-
필요한 파이썬 팩키지도 설치
CMD> d:/home/site/tools/python -m pip install requests beautifulsoup4
- 버전 확인
CMD> d:/home/site/tools/python --version
Python 3.6.1