我从网上安装的 Python 模块的源代码

Source code of Python module that I installed from the web

我该如何查看我安装(使用 pip)的第三方 python 模块 (pywhatkit) 的源代码。 我也尝试使用 open() 和 read() 函数,但它没有用,输出显示。

Err: file not found

Python 库源代码通常存储在 github 中。 在这种情况下,您可以在此处找到所需的源代码: https://github.com/Ankit404butfound/awesomepy/blob/master/program.py

如果您使用的是 IDE,例如 Pycharm,您可以在代码中按住 Ctrl 键并单击该模块名称,它将带您转到包含定义的文件。通常,已安装的模块位于 python 安装目录的 lib/site-packages/ 中。