我使用pipenv
作为包管理工具,对于我的项目,我使用来自pypi和其他私有本地项目的包,因为我们做了私有pypi repo,但在尝试安装包时,我得到以下错误:
File "/usr/local/Cellar/pipenv/8.3.2_1/libexec/lib/python3.6/site-packages/pipenv/utils.py", line 382, in prepare_pip_source_args
pip_args.extend(['-i', sources[0]['url']])
TypeError: 'NoneType' object is not subscriptable
My Pipfile如下所示:
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"
[[source]]
url = "https://my.domain.com/repository/"
verify_ssl = true
name = "local"
[packages]
flask = "*"
sqlalchemy = "*"
gunicorn = "*"
...
my_project = {version="*", index="local"}
[dev-packages]
tox = "*"
pytest = "*"
"flake8" = "*"
[requires]
python_version = "3.6"
我做错了什么?我该如何解决这个问题??