如何将python模块复制到python lib目录中
我有一些 python 模块要复制到我的 Linux 计算机中。 我发现我需要将它们复制到 python 搜索的目录之一,否则会显示一个新路径。 1.当我尝试将文件复制到/usr/bin/..../python2.6 ..时它不允许我。 我该怎么做呢? 2. 另外请告诉我如何添加新的搜索路径?
请详细指导。我对linux的了解非常少
还请告诉我如何克服此类问题。有什么小书或者可以学习的吗?
I have some python modules to copy into my Linux computer.
I found out that I need to copy them into one of the directory that python searches or else show a new path for it.
1. when I tried to copy files into /usr/bin/..../python2.6 .. its not allowing me.
how do I make it.
2. Also do tell me how do I add a new search path ?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使其成为 setuptools 之上的适当 Python 包,并使用“console_scripts”入口点注册您的命令行前端。
Make it a proper Python package on top of setuptools and register your command-line frontends using the 'console_scripts' entry-point.