远程服务器是离线状态,先需要把第三方包拷贝到python环境中
[root@host-173-**-**-** /]# python Python 2.7.5 (default, Nov 6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from distutils.sysconfig import get_python_lib >>> print (get_python_lib()) /usr/lib/python2.7/site-packages //在该目录下随便添加一个*.pth文件配置 [root@slaver site-packages]# pwd /usr/lib/python2.7/site-packages [root@slaver site-packages]# cat py-pack.pth /home/py-pack //拷贝第三方包到该目录
ps -ef | grep runserver |grep -v grep | awk '{print $2}' | xargs kill -9 nohup python /home/demo/manage.py runserver 0.0.0.0:8080 >> /home/jenkinstest.log 2>&1 &
转载于:https://www.cnblogs.com/CGCong/p/11155956.html
相关资源:各显卡算力对照表!