在某些计算机上构建的有效Pipfile不在其他计算机上构建,并且因依赖项错误而死亡。
我们运行pipenv install --dev
时会看到此错误,尽管看起来six
版本1.12.0应该符合约束集:
ERROR: ERROR: Could not find a version that matches six>=1.10.0,>=1.12,>=1.2,>=1.5.2,>=1.6.1,>=1.7.0,>=1.9.0,~=1.10.0
Tried: 0.9.0, 0.9.1, 0.9.2, 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.4.1, 1.5.0, 1.5.0, 1.5.1, 1.5.1, 1.5.2, 1.5.2, 1.6.0, 1.6.0, 1.6.1, 1.6.1, 1.7.0, 1.7.0, 1.7.1, 1.7.1, 1.7.2, 1.7.2, 1.7.3, 1.7.3, 1.8.0, 1.8.0, 1.9.0, 1.9.0, 1.10.0, 1.10.0, 1.11.0, 1.11.0, 1.12.0, 1.12.0
S
原始Pip文件是:
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
[dev-packages]
pytest = "*"
ipdb = "*"
django-environ = "*"
responses = "*"
django-extensions = "*"
django = "<=1.11.7"
pytest-cov = "*"
pytest-django = "*"
"flake8" = "*"
pytest-xdist = "*"
[packages]
grpcio = "*"
pytest = "*"
requests = "*"
pytest-django = "*"
"psycopg2" = "*"
arrow = "*"
retrying = "*"
djangorestframework = "*"
"autopep8" = "*"
dj-environ = "*"
pytz = "*"
pillow = "*"
raven = "*"
colorlog = "*"
django-extensions = "*"
redis = "<3.0.0"
rq = "<0.11.0"
keen = "*"
pymongo = "*"
django-simple-history = "*"
python-stdnum = "*"
dictdiffer = "*"
shippo = "*"
shopifyapi = "*"
mypy = "*"
boto = "*"
google-cloud-vision = "*"
twilio = "*"
django-phonenumber-field = "*"
python-bcrypt = "*"
phonenumbers = "*"
core = {editable = true,path = "."}
"tinys3" = "*"
dialogflow = "*"
python-twitter = "*"
sentry-sdk = "*"
"oauth2client" = "*"
tenacity = "*"
fakeredis = "*"
[requires]
python_version = "3.6"
我们尝试了许多选项,例如pipenv install --ignore-pipfile
,使用似乎正常运行的机器上的Pipfile.lock
,但没有安装任何东西。运行pipenv graph
不会产生任何输出。运行pipenv install --skip-lock
失败,并显示原始错误。