下载PyPi包的URL

时间:2014-01-18 08:02:50

标签: python pip

我写了一个小包并且已成功将包上传到pypi但是当我使用pip进行安装时,这个回溯来了,它永远不会被安装。

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安装它。

1 个答案:

答案 0 :(得分:2)

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

基本上你需要先注册你的包裹 -

python setup.py register

然后上传distributables -

python setup.py sdist bdist_wininst upload