You are right , sym-link is simple example. In multi-python multi-web2py envs I use to full path to python (centos 7 /etc/systemd/syste/gunicorn.service) --------------- [Unit] Description=Gunicorn instance to serve web2py After=network.target
[Service] User=w2p Group=w2p WorkingDirectory=/home/w2p/web2py #Environment="PATH=/home/w2p/.conda/envs/lic/bin/:$PATH" #ExecStart=/home/w2p/.conda/envs/lic/bin/gunicorn --workers 24 --timeout=90 --graceful-timeout=10 --bind 127.0.0.1:8005 wsgihandler:application ExecStart=/home/w2p/.conda/envs/lic/bin/gunicorn --workers 20 --timeout=90 --graceful-timeout=10 --reload --bind unix:/home/w2p/var/gunicorn.sock wsgihandler:application Restart=always [Install] WantedBy=multi-user.target -------------- /home/w2p/.conda/envs/lic/bin/gunicorn ------------------------------- #!/home/w2p/.conda/envs/lic/bin/python if __name__ == '__main__': import sys from gunicorn.app.wsgiapp import run sys.exit(run()) ------------------------------------ also, I use to pip with full path or with sym-link вторник, 8 мая 2018 г., 3:11:37 UTC+3 пользователь 黄祥 написал: > > plan to test web2py both python2 and python3 in 1 machine, any idea how to > do that in the safety way? > already googling found this: > > brew update > brew install python > brew install python3 > > any thought or comment? > > thx and best regards, > stifan > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.