如何手动安装PBR模块?

时间:2019-03-25 09:31:19

标签: python-3.x setup.py

我正在通过下载模块并使用python-jenkins来手动安装python setup.py installpbr是其依赖项之一。我也尝试对pbr做相同的步骤,也就是从GitHub和python setup.py install下载项目zip,但是面对 错误

$ python setup.py install
Traceback (most recent call last):
  File "setup.py", line 21, in <module>
    **util.cfg_to_args())
  File "C:\Users\shivansh.trn\Desktop\pbr-master\pbr\util.py", line 256, in cfg_to_args
    pbr.hooks.setup_hook(config)
  File "C:\Users\shivansh.trn\Desktop\pbr-master\pbr\hooks\__init__.py", line 25, in setup_hook
    metadata_config.run()
  File "C:\Users\shivansh.trn\Desktop\pbr-master\pbr\hooks\base.py", line 27, in run
    self.hook()
  File "C:\Users\shivansh.trn\Desktop\pbr-master\pbr\hooks\metadata.py", line 26, in hook
    self.config['name'], self.config.get('version', None))
  File "C:\Users\shivansh.trn\Desktop\pbr-master\pbr\packaging.py", line 849, in get_version
    name=package_name))
Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name pbr was given, but was not able to be found.

由于互联网限制,我不能直接使用pip install python-jenkinspip install pbr

0 个答案:

没有答案