How to install py4web on pythonAnywhere with web2py already installed

90 views
Skip to first unread message

Joe Codeswell

unread,
Jan 8, 2022, 5:41:32 PM1/8/22
to py4web

How to install py4web on pythonAnywhere with web2py already installed?

Hi folks,

How can I install py4web on pythonAnywhere with web2py already installed?

1. Here’s what my home directory currently looks like

```bash

44 ~ $ pwd

/home/XXXmyHomeXXX

21:44 ~ $ ls

README.txt  btl  web2py

21:44 ~ $ cd btl

21:52 ~/btl $ ls -a

.  ..  __pycache__  bottle_app.py

21:52 ~/btl $

```


2. Here’s the content of the bottle_app.py

```python

# A very simple Bottle Hello World app for you to get started with...

from bottle import default_app, route

@route('/')

def hello_world():

    return 'Hello from Bottle!'

application = default_app()

```


3. Right now browse: https://py4-myurl.pythonanywhere.com/  

==yields==> Hello from Bottle!


4. To install py4web and NOT DISTURB web2py:

  1, What should be the specific pip command and 

  2. Where in the directory structure should I issue it from?


Mochamad Handoko

unread,
May 23, 2025, 11:02:18 AM5/23/25
to py4web
Thanks for your information. 

visit us : https://groups.google.com/u/1/g/info-guru-terbaru/c/6s1Y297DxGY
Reply all
Reply to author
Forward
0 new messages