我有一些 python 模块要复制到我的 Linux 计算机中。 我发现我需要将它们复制到 python 搜索的目录之一,或者为它显示一个新路径。 1. 当我试图将文件复制到/usr/bin/..../python2.6 .. 它不允许我。 我该怎么做。 2. 另外请告诉我如何添加新的搜索路径?
please guide me in detail. I have very less knowledge in linux
Also please tell me how do I get over this kind of problems myself. Is there any small book or a kind of to learn?
最佳答案
在 setuptools 之上使其成为一个合适的 Python 包,并使用“console_scripts”入口点注册您的命令行前端。
关于python - 如何将python模块复制到python lib目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6711365/