【发布时间】:2020-08-18 09:09:05
【问题描述】:
我有以下 pipfile:
[[source]]
name = "pypi"
url = "${PYPI_ENDPOINT}"
verify_ssl = true
[dev-packages]
flask-shell-ipython = "==0.4.*"
ipython = "==7.4.*"
[packages]
boto3 = "==1.9.*"
statsd = "==3.2.1"
gunicorn = ">=19.7.0,<20.0.0"
python-dotenv = "==0.8.2"
Flask = "==1.0.2"
pyflogger = "==0.1.*"
mongoengine = "==0.17.*"
sagemaker = "==1.18.*"
databricks-connect = "==5.2.*"
[requires]
python_version = "3.5.3"
一切正常,但是一旦我将databricks-connect 版本更改为"==5.5.*",由于以下错误,我无法在本地和詹金斯中构建项目:
ERROR: Could not find a version that matches flask-shell-ipython==0.4.* (from -r /tmp/pipenv0ut3ryizrequirements/pipenv-igwd4wtq-constraints.txt (line 2))
我决定不指定这个库的具体版本并将 pipfile 更改为
[dev-packages]
flask-shell-ipython = "*"
但还是有例外:
ERROR: Could not find a version that matches flask-shell-ipython
那是我的 .yml 文件
command_list:
- name: Generate a template
command: ./etc/build_config_files.sh ./templates ~
- name: virtual env
command: /usr/local/bin/virtualenv -p /home/admin/.pyenv/versions/3.5.2/bin/python .jarvis
- name: run
command: . ./.jarvis/bin/activate && ./.jarvis/bin/pip install pipenv && ./.funnel_prediction_jarvis/bin/pipenv install && ./.jarvis/bin/pipenv run python -u script/fetch_kw_lp_mapping.py
- name: remove databricks connect config file
command: rm -f ~/.databricks-connect
有什么办法可以解决?
【问题讨论】:
-
您是否尝试过清除缓存? pipenv.pypa.io/en/latest/diagnose/…
标签: python python-3.x pipenv pipfile pipenv-install