within client Azure account in venv:
pip install pandas was fine:
Collecting pandas
Downloading pandas-0.24.2-cp35-cp35m-manylinux1_x86_64.whl (10.0 MB)
|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 10.0 MB 3.3 MB/s
Collecting pytz>=2011k
Downloading pytz-2020.1-py2.py3-none-any.whl (510 kB)
|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 510 kB 17.0 MB/s
Collecting numpy>=1.12.0
Downloading numpy-1.18.5-cp35-cp35m-manylinux1_x86_64.whl (19.9 MB)
|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 19.9 MB 57.5 MB/s
Collecting python-dateutil>=2.5.0
Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 227 kB 51.6 MB/s
Collecting six>=1.5
Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
Installing collected packages: pytz, numpy, six, python-dateutil, pandas
Successfully installed numpy-1.18.5 pandas-0.24.2 python-dateutil-2.8.1 pytz-2020.1 six-1.15.0
(.venv) seb@Azure:~$ pip list
Package Version
numpy 1.18.5
pandas 0.24.2
pip 20.2.2
pkg-resources 0.0.0
python-dateutil 2.8.1
pytz 2020.1
setuptools 20.7.0
six 1.15.0
(.venv) seb@Azure:~$ pip install fastapi
ERROR: Could not find a version that satisfies the requirement fastapi (from versions: none)
ERROR: No matching distribution found for fastapi
$ python --version
Python 3.5.2
Normally can I upgrade clients Python version in Azure, or can I upgrade Python version inside the venv?
You can't install it cause you are using python 3.5.2, and the minimum version of python that supports fastapi is python 3.6. You should use a Venv using at least python3.6 if you can't upgrade the version of python on azure
@scheung38 You can install a later version of python and use venv in the Azure shell
cd
wget https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tar.xz -O Python-3.8.1.tar.xz
tar -xvf Python-3.8.1.tar.xz
cd Python-3.8.1
./configure --prefix=/home/$USER/.python --enable-optimizations
make && make install
This will install python in your home ~/.python dir and you can enable setup venv in your preferred folder.
Thanks for the help here everyone! :clap: :bow:
If that solves the original problem, then you can close this issue :heavy_check_mark:
Assuming the original issue was solved, it will be automatically closed now. But feel free to add more comments or create new issues.
Most helpful comment
You can't install it cause you are using python 3.5.2, and the minimum version of python that supports fastapi is python 3.6. You should use a Venv using at least python3.6 if you can't upgrade the version of python on azure