简体   繁体   English

devpi - pip install setup.cfg MissingSectionHeaderError - virtualenv

[英]devpi - pip install setup.cfg MissingSectionHeaderError - virtualenv

I have a really simply python package which I'm building/uploading to a devpi repo running on my laptop. 我有一个非常简单的python包,我正在构建/上传到我的笔记本电脑上运行的devpi repo。

When I attempt to pip install it I get the following error: 当我尝试pip安装它时,我收到以下错误:

MissingSectionHeaderError: File contains no section headers.
file: setup.cfg, line: 1
'[\n'

My package doesn't even have a setup.cfg file, so I'm a bit confused. 我的包甚至没有setup.cfg文件,所以我有点困惑。 Does anyone have any idea on what's going on? 有没有人知道发生了什么?

Update1: I've since discovered that trying to pip install any package I get the exact same error, making me think this has nothing to do with my package, but more likely to do with my devpi configuration or devpi and/or pip related dotfiles UPDATE1:我自从发现试图点子安装任何软件包我得到确切同样的错误,让我觉得这无关我的包,但更可能与我的devpi配置或devpi和/或相关点子点文件

Update2: Hmm, perhaps this is the problem. UPDATE2:嗯,也许这就是问题所在。 the devpi site mentions there being an issue with devpi 4.0 and pip 1.8.2, both of which I have installed. 在devpi网站提到有是一个问题与devpi 4.0和PIP 1.8.2,这两个我已经安装了。 I'll have to look into this. 我要看看这个。

pip doesn't install packages anymore with devpi pip不再使用devpi安装软件包

在我将所有virtualenvs中的pip版本从pip==1.8.2降级到pip==8.1.1后,我没有遇到任何问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM