Python3

alexus alexus at gmail.com
Sun Jan 4 23:03:44 CET 2009


On Jan 4, 4:46 pm, s... at pobox.com wrote:
>     alexus> enviroment: FreeBSD j.jothost.com 7.0-RELEASE-p7 FreeBSD 7.0-RELEASE-
>     alexus> p7 #6: Wed Dec 24 15:58:06 EST 2008     ale... at j.jothost.com:/usr/obj/
>     alexus> usr/src/sys/GENERIC  i386
>
>     alexus> I installed both of Python 2 and Python 3 via source code
>     alexus> (compile them myself)
>
> Where was Python 2 installed?  /usr/bin or /usr/local/bin or somewhere else?
> What was the --prefix arg to configure when building Python 3?
>
> S

both of them were default --prefix, so I assume --prefix=/usr/local/

su-3.2# whereis python
python: /usr/local/bin/python /usr/ports/lang/python
su-3.2# /usr/local/bin/python --version
Python 2.6.1
su-3.2#

it's shows like 2.6.1 is there, yet when I ran "trac-admin", I get

su-3.2# trac-admin
Traceback (most recent call last):
  File "/usr/local/bin/trac-admin", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources
su-3.2#



More information about the Python-list mailing list