我创建了一个python模块i2cdev
。
pypi链接:https://pypi.python.org/pypi?%3Aaction=pkg_edit&name=i2cdev
git链接:https://github.com/cloudformdesign/i2cdev
当我尝试通过pip安装它时,我发现它找不到它:
$ pip3 search "i2cdev" # finds it fine
i2cdev - Simple I2C Library for linux
$ pip3 install i2cdev
Collecting i2cdev
Could not find any downloads that satisfy the requirement i2cdev
No distributions at all found for i2cdev
到底是怎么回事?
最佳答案
哇,我是个白痴。显然,您必须使用setup.py sdist upload
将代码实际上传到python。我认为只需注册就足够了。