Discussion:
[Tutor] Missing Standard Libraries on Python 3.5 for Mac
Andrew Machen
2015-11-03 17:20:07 UTC
Permalink
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 - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.o
Zachary Ware
2015-11-03 18:51:36 UTC
Permalink
Hi Andrew,

On Tue, Nov 3, 2015 at 11:20 AM, Andrew Machen
Post by 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.
/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__)
Post by Andrew Machen
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 - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mail
Continue reading on narkive:
Loading...