support' on a Mac. Where can I find it?
If I am on a debian based system and using python and I want to update some modules, there is a feature of python called 'python-support'. I can install it by
sudo apt-get install python-support
I can't manage to find it anywhere for mac, and I have attempted to install it using mac ports via the ...
sudo port install python-support
... command. I can't seem to find it anywhere on the web.
In Debian the equivalent of what I am trying to do is as follows:
update-python-modules <module-name>
There are two answers that would help. Either
Many thanks in advance. And yes, I have Googled extensively :-)
update-python-modules
does not update the modules to their latest version. It rebuilds the byte code for the existing modules and is intended to be used after upgrading Python to a new version. There's a similar script named python-updater
in Gentoo.
I doubt you have any reason to have it on a Mac; Python versions usually only change with OS updates, and those clean out your site-packages
. If you really need this exact functionality, you can use find
like so:
find {,/Users/*}/Library/Python/*/ -name '*.py[co]' -exec rm {} ;
I am not a Mac user or developer, but refer to http://www.fprimex.com/coding/pymac.html, you can use easy_install
or pip
utility as they are on Windows or Linux.
For example:
Install a module:
pip install <module>
Upgrade a module:
pip install <module> -U
升级所有安装的软件包(使用pip):
pip freeze --local | cut -d = -f 1 | xargs echo pip install -U
上一篇: 如何使用FSWatch观看Mac OSX上的文件更改?
下一篇: 支持'在Mac上。 我在哪里可以找到它?