相关疑难解决方法(0)

如何编写Python模块/包?

我一直在为工作中的简单任务制作Python脚本,从来没有真正打扰包装它们以供其他人使用.现在我被分配为REST API创建一个Python包装器.我完全不知道如何开始,我需要帮助.

是)我有的:

(只是想尽可能具体)我已经准备好了virtualenv,它也在github中,python的.gitignore文件也是,还有用于与REST API交互的请求库.而已.

这是当前目录树

.
??? bin
?   ??? /the usual stuff/
??? include
?   ??? /the usual stuff/
??? lib
?   ??? python2.7
?       ??? /the usual stuff/
??? local
?   ??? /the usual stuff/
??? README.md

27 directories, 280 files
Run Code Online (Sandbox Code Playgroud)

我甚至不知道把.py文件放到哪里,如果我做的话.

我想做什么:

使用"pip install ..."安装python模块

如果可能的话,我想要编写Python模块的一般步骤.

python python-module python-2.7

353
推荐指数
4
解决办法
35万
查看次数

如何使用pip更新\升级包?

使用pip更新包的方法是什么?那些不起作用

pip update
pip upgrade
Run Code Online (Sandbox Code Playgroud)

我知道这是一个简单的问题,但因为它不容易找到(pip 文档没有弹出,堆栈溢出的问题是相关的,但并不完全相关)

python pip

108
推荐指数
8
解决办法
17万
查看次数

标签 统计

python ×2

pip ×1

python-2.7 ×1

python-module ×1