我正在通过下载模块并使用python-jenkins
来手动安装python setup.py install
。 pbr
是其依赖项之一。我也尝试对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-jenkins
或pip install pbr
。