example_pkg:在python中设置软件包的教程示例 源码
入门 教程示例: : 良好的示例参考: : 如何安装和使用软件包: 首先建立一个虚拟环境 $ python -m venv env # Source the virtual env $ source env/bin/activate 现在在虚拟环境中安装源文件 # In the root directory run $ pip install -e . # Check to see if its installed in virtual env $ pip list # example-pkg-tiri1992 0.0.1 # Under location you should see the path of where the cloned repo is. 注意:这不会将副本复制到全局站点程序包中,因此建议不要使用同一程序包的多个副本,否则可能会导致冲突。 -e命令以可编
下载地址
用户评论