I have a php application in production hosted on a debian (stretch) server - plesk dedicated server. This server runs with apache and nginx in reverse proxy mode.
I have just finalized in my local environment (ubuntu 18.04) a django application (3.1.4) that I have to deploy on this debian server. On the latter, are installed python 2.7 and 3.5. Python 3.5 is not compatible with my django application.
As my django application and its dependencies in the local environment run with python 3.8.7, I decided to install python 3.8.6 on the debian server.
While doing this (I sure did wrong) I get error messages when trying to configure my django and / or python3.8 application.
Here are the actions taken on debian:
I copied my django project to a directory on the server and installed python3.8.6. However when I try to install virtualenv (pip3 install virtualenv) I get the following error message:
Traceback (most recent call last):
File ? /usr/bin/pip3 ?, line 9, in
from pip import main
ImportError: cannot import name ? main ? from ? pip ? (/usr/local/lib/python3.8/site-packages/pip/ init .py)
Need help to be able to properly configure python3.8 without disturbing my application in production.
Thank you in advance
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…