[Tutor] Missing Standard Libraries on Python 3.5 for Mac

2015-11-03 Thread Andrew Machen
Hi,

I am new to Python, and I am trying to use a Python Standard Library, namely 
‘unicodedata’, however it appears to be missing (others are also missing) from 
the built-in libraries that come with Python 3.5 for Mac. 

I have searched the following directory, but have not found the library:

/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5

I have tried reinstalling Python 3.5 and also tried Python 3.4.3, and neither 
install the ‘unicodedata’ library. Is there anyway to install it manually?

The library is present in the Python 2.7 version provided by Apple, however I 
was hoping to learn and use Python 3. The library is present in the Linux 
version of Python 3.5 that I have tried.

Your help is greatly appreciated.

-Andrew
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Missing Standard Libraries on Python 3.5 for Mac

2015-11-03 Thread Zachary Ware
Hi Andrew,

On Tue, Nov 3, 2015 at 11:20 AM, Andrew Machen
 wrote:
> Hi,
>
> I am new to Python, and I am trying to use a Python Standard Library, namely 
> ‘unicodedata’, however it appears to be missing (others are also missing) 
> from the built-in libraries that come with Python 3.5 for Mac.
>
> I have searched the following directory, but have not found the library:
>
> /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5

Have you tried importing it?  If importing it works, you can then find
where it lives by checking the __file__ attribute:

import unicodedata
print(unicodedata.__file__)

> I have tried reinstalling Python 3.5 and also tried Python 3.4.3, and neither 
> install the ‘unicodedata’ library. Is there anyway to install it manually?

It should be included with your installation, assuming you're using
the package from python.org.  If you are unable to import it, please
raise an issue on the bug tracker at bugs.python.org.

For the record, here's where unicodedata lives on my Mac:
/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/lib-dynload/unicodedata.cpython-35m-darwin.so

Note that unicodedata is implemented in C, so it does not have a .py extension.

-- 
Zach
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Missing Standard Libraries on Python 3.5 for Mac

2016-02-29 Thread Jack Potrashitel
I use anaconda . Since i dont have peoblems with libraries

вторник, 3 ноября 2015 г. пользователь Zachary Ware написал:

> Hi Andrew,
>
> On Tue, Nov 3, 2015 at 11:20 AM, Andrew Machen
> > wrote:
> > Hi,
> >
> > I am new to Python, and I am trying to use a Python Standard Library,
> namely ‘unicodedata’, however it appears to be missing (others are also
> missing) from the built-in libraries that come with Python 3.5 for Mac.
> >
> > I have searched the following directory, but have not found the library:
> >
> > /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5
>
> Have you tried importing it?  If importing it works, you can then find
> where it lives by checking the __file__ attribute:
>
> import unicodedata
> print(unicodedata.__file__)
>
> > I have tried reinstalling Python 3.5 and also tried Python 3.4.3, and
> neither install the ‘unicodedata’ library. Is there anyway to install it
> manually?
>
> It should be included with your installation, assuming you're using
> the package from python.org.  If you are unable to import it, please
> raise an issue on the bug tracker at bugs.python.org.
>
> For the record, here's where unicodedata lives on my Mac:
>
> /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/lib-dynload/
> unicodedata.cpython-35m-darwin.so
>
> Note that unicodedata is implemented in C, so it does not have a .py
> extension.
>
> --
> Zach
> ___
> Tutor maillist  -  Tutor@python.org 
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor