Where is the source of "modules" exactly? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Where is the source of "modules" exactly?

17th Sep 2016, 3:23 PM
Daniel Yang
Daniel  Yang - avatar
6 Answers
+ 2
If you mean standart library modules, a good place to read them is https://github.com/JUMP_LINK__&&__python__&&__JUMP_LINK/cpython/tree/3.5/Lib
17th Sep 2016, 11:25 PM
Andriy Maletsky
Andriy Maletsky - avatar
+ 2
or if you're asking where they actually are on your machine, you may find it out by executing `import this; print(this.__path__)`
18th Sep 2016, 12:35 AM
Andriy Maletsky
Andriy Maletsky - avatar
0
The Python package Index is the main source of python modules. Some modules, called the Standard Library, are pre-installed.
17th Sep 2016, 7:05 PM
Amarie
0
Here's the link to the Python Package Index: https://pypi.python.org/pypi
17th Sep 2016, 7:07 PM
Amarie
0
Thanks a lot :)
18th Sep 2016, 1:57 AM
Daniel Yang
Daniel  Yang - avatar
0
in linux /lib/python3.5 or /lib/python2.7
18th Sep 2016, 8:07 AM
Stefan Wegert
Stefan Wegert - avatar