2014-01-18 54 views
1

我写了一个小软件包,并成功将软件包上传到pypi,但是当我使用pip进行安装时,此追溯事件发生,它永远不会被安装。下载PyPi软件包的URL

Downloading/unpacking pytransmit 
    Getting page https://pypi.python.org/simple/pytransmit/ 
    URLs to search for versions for pytransmit: 
    * https://pypi.python.org/simple/pytransmit/ 
    Analyzing links from page https://pypi.python.org/simple/PyTransmit/ 
    Could not find any downloads that satisfy the requirement pytransmit 
Cleaning up... 
    Removing temporary dir c\temp\pip_build_dd... 
No distributions at all found for pytransmit 
Exception information: 
Traceback (most recent call last): 
    File "C:\Python27\lib\site-packages\pip\basecommand.py", line 122, in main 
    status = self.run(options, args) 
    File "C:\Python27\lib\site-packages\pip\commands\install.py", line 270, in run 
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) 
    File "C:\Python27\lib\site-packages\pip\req.py", line 1157, in prepare_files 
    url = finder.find_requirement(req_to_install, upgrade=self.upgrade) 
    File "C:\Python27\lib\site-packages\pip\index.py", line 285, in find_requirement 
    raise DistributionNotFound('No distributions at all found for %s' % req) 
DistributionNotFound: No distributions at all found for pytransmit 

我该如何使用pip来安装它。

+0

似乎没有成为你的包HTTPS任何下载的文件://的PyPI .python.org/pypi/PyTransmit –

+0

@Bibhas是的,如何上传? – ajkumar25

+0

现在通过'pip install pytransmit'工作 - 很好的工作! –

回答

2

您没有任何可下载的文件。你可以关注the official tutorial并上传你的软件包文件。

Essencially你需要先注册你的包 -

python setup.py register 

,然后上传distributables -

python setup.py sdist bdist_wininst upload