sys.path in python3.3
Hans Mulder
hansmu at xs4all.nl
Sun Aug 26 15:49:10 EDT 2012
On 26/08/12 21:21:15, Ned Deily wrote:
> In article
> <CAAu18hc7katbONp7A+-A1pyE8BYySgfaC4FHHKSD8peeQjLMbg at mail.gmail.com>,
> Nicholas Cole <nicholas.cole at gmail.com> wrote:
>> In all previous versions of python, I've been able to install packages
>> into the path:
>>
>> ~/Library/Python/$py_version_short/site-packages
>>
>> but in the rc builds of python 3.3 this is no longer part of sys.path.
>>
>> Before I go hacking the install, is there a reason that this path was
>> removed? Is there a recommended way to get it back, or is this a
>> gentle way of pushing us all to use virtualenv rather than installing
>> user-specific packages?
>
> It should be working if you are using an OS X framework build. What is
> the value of sys.path?
Python 3.3.0rc1 (v3.3.0rc1:8bb5c7bc46ba, Aug 25 2012, 09:42:40)
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> for d in sys.path:
... print(d)
...
/Library/Frameworks/Python.framework/Versions/3.3/lib/python33.zip
/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3
/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/plat-darwin
/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/lib-dynload
/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages
This is using the Python 3.3 for MacOS binary from python.org.
-- HansM
More information about the Python-list
mailing list