[web2py] Re: python2 and python3 in 1 machine

2018-05-19 Thread Alex Beskopilny
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

[web2py] Re: python2 and python3 in 1 machine

2018-05-18 Thread 黄祥
## miniconda on osx # Download and Install Package cd ~/Downloads curl -L -O -C - https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh bash Miniconda*.sh yes yes # Load New Path source ~/.bash_profile # Update Package conda update -n base conda # Create Environment conda

[web2py] Re: python2 and python3 in 1 machine

2018-05-18 Thread 黄祥
> > you missed > adduser pyuser > sudo su pyuser > yes, you are right, the step above was tested using root account and running smoothly, and as per your advice it's safest to do it using user privilege not root login. will try in osx soon, for the size of python 3 ampps in osx around 136mb,

[web2py] Re: python2 and python3 in 1 machine

2018-05-18 Thread Alex Beskopilny
you missed adduser pyuser sudo su pyuser :( вторник, 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

[web2py] Re: python2 and python3 in 1 machine

2018-05-18 Thread 黄祥
*# miniconda on ubuntu (around 50mb)* apt update apt install -y curl curl -L -O -C - https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh bash Miniconda*.sh yes yes source ~/.bashrc conda update -n base conda y conda create --name mypython3 python=3 y ln -s

[web2py] Re: python2 and python3 in 1 machine

2018-05-18 Thread Alex Beskopilny
use anaconda . 1 adduser pyuser 2 su pyuser 3 install anaconda https://conda.io/miniconda.htmlto ~/opt 4 conda create --name mypython3 python=3 ln -s ~/.conda/envs/mypython3/bin/python3 ~/bin/mypy3 5 conda create --name mypython2 python=2 ln -s

[web2py] Re: python2 and python3 in 1 machine

2018-05-17 Thread 黄祥
objective is to installed another python that not affected the pre installed one by os ended with installed python 3.6 with ampps, add the ampps python path into path variable when using python 3 and remove ampps python path when using python 2 not doing the brew install python (v 2), because

[web2py] Re: python2 and python3 in 1 machine

2018-05-16 Thread Antonio Salazar
You just install them both, as your instructions say. If you want to start wen2py in python2, just execute it with python: python web2py.py If you want to start web2py in Python 3, execute it with python3: python3 web2py.py This is how I do it in Linux, but I'm almost sure MacOS does it the

[web2py] Re: python2 and python3 in 1 machine

2018-05-07 Thread lyn2py
Yes I'm using this way to run both py2 and py3 on the same machine Have 2 folders, one for py2 and one for py3. python2 ...path to py2 folder/web2py.py ...and do the same for py3. Works! On Tuesday, May 8, 2018 at 8:11:37 AM UTC+8, 黄祥 wrote: > > plan to test web2py both python2 and python3