python - How to deploy the local virtualenv environment on the server?
PHPz
PHPz 2017-05-18 10:49:11
0
1
601

How to deploy the local virtualenv environment on the server?
The first time I deployed python web, environmental issues caused a headache

PHPz
PHPz

学习是最好的投资!

reply all(1)
習慣沉默

If you put all the dependencies into a file locally, pip freeze > requirements.txt,把该文件上传到服务器。然后再在服务器上先新建一个python虚拟环境,再激活虚拟环境,切换到requirements.txt文件夹目录下,通过 pip install -r requirements.txtall dependencies will be installed.

If you have any questions, please feel free to ask again

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!