Any tricks about upgrading pydal? I use sudo -H pip install pydal on MacOS. What about Windows?

27 views
Skip to first unread message

Tom Campbell

unread,
Jul 13, 2020, 6:06:53 PM7/13/20
to py4web
Writing a kind of FAQ for py4web, and I'm lagging in my Python best practices. As near as I can tell getting the latest pydal just requires this on MacOS:

# -H ensures root HOME directory is used
sudo
-H pip install pydal


Is that correct? Should I omit the -H?

And would it look like this on Windows 10?

pip install pydal


Massimo DiPierro

unread,
Jul 13, 2020, 6:12:06 PM7/13/20
to Tom Campbell, py4web
python3 -m pip install -U pydal

-U does the upgrade

--
You received this message because you are subscribed to the Google Groups "py4web" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py4web+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/py4web/a8018658-b5be-4da8-9796-7966e3c43744o%40googlegroups.com.

Tom Campbell

unread,
Jul 13, 2020, 6:28:51 PM7/13/20
to py4web
THANKS TONS! Can do a better job on the grid eval. My 2018 MacBook Pro killed itself early yesterday and I am picking up the pieces of my broken life


On Monday, July 13, 2020 at 3:12:06 PM UTC-7, Massimo wrote:
python3 -m pip install -U pydal

-U does the upgrade

On Mon, Jul 13, 2020, 15:06 Tom Campbell <tomca...@gmail.com> wrote:
Writing a kind of FAQ for py4web, and I'm lagging in my Python best practices. As near as I can tell getting the latest pydal just requires this on MacOS:

# -H ensures root HOME directory is used
sudo
-H pip install pydal


Is that correct? Should I omit the -H?

And would it look like this on Windows 10?

pip install pydal


--
You received this message because you are subscribed to the Google Groups "py4web" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py4...@googlegroups.com.

Massimo DiPierro

unread,
Jul 13, 2020, 6:33:55 PM7/13/20
to Tom Campbell, py4web
One problem I have all the time is that while in python2 every py version (2.6, 2.7,…) keeps its own version of the libraries, in python3 this is not always the case. So libraries can be put in places that are shared between 3.6, 3.7, 3.8, etc. This means when I upgrade I some times I have to uninstall from all of them, and the specify what I want:

sudo python3.6 -m pip uninstall pydal
sudo python3.7 -m pip uninstall pydal
sudo python3.8 -m pip uninstall pydal

and they install the one I want:

python3.8 -m pip install -U pydal

Some times I had to uninstall twice for it to work. Never had these problems with python2.7.

Massimo

To unsubscribe from this group and stop receiving emails from it, send an email to py4web+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/py4web/b9be37d7-7484-4706-8865-a785b8d5e1aao%40googlegroups.com.

Wanderson Reis

unread,
Jul 13, 2020, 6:42:40 PM7/13/20
to py4web
For py4web specific packages requisites I am doing:


pip install -r requirements.txt

After git pull from py4web repo it will install/upgrade all needs.

Massimo DiPierro

unread,
Jul 13, 2020, 6:48:15 PM7/13/20
to Wanderson Reis, py4web
I recommend instead of “pip …” you do “python3.7 -m pip …” so you specify which pip. You may have more than one.

-- 
You received this message because you are subscribed to the Google Groups "py4web" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py4web+un...@googlegroups.com.

Jeff Muday

unread,
Jul 13, 2020, 7:20:11 PM7/13/20
to Massimo DiPierro, Wanderson Reis, py4web
Is there anything "magically special" about Python 3.7 for Py4Web?  I am using 3.6.9 on Ubuntu 18.04 LTS (which is maintained through 2023).  It seemed to be good enough with Py4Web.




--
Jeff Muday
IT Analyst
Wake Forest University
mudayja at wfu dot edu

Disclaimer: This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed.

Massimo DiPierro

unread,
Jul 13, 2020, 7:47:13 PM7/13/20
to Jeff Muday, Wanderson Reis, py4web

Jeff Muday

unread,
Jul 13, 2020, 9:14:10 PM7/13/20
to Massimo DiPierro, Wanderson Reis, py4web
Thanks Massimo!
JM

Reply all
Reply to author
Forward
0 new messages