Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
459 views
in Technique[技术] by (71.8m points)

python 3.8 - Correctly configure python3.8.6 or .7 on debian stretch for a django project

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...