Pipenv忽略Python版本

问题描述 投票:0回答:1

我正在尝试在macOS(10.15.3)上使用Pipenv,但是遇到问题。具体来说,我声明它使用Python 3.6,但无法锁定Pipfile。完全相同的代码在Linux系统上可以正常工作。

pipenv --python 3.6 update

这是我的Pipfile:

[[source]]
name = "pypi"
url = "https://pypi.org/simple/"
#url = "https://nexus.agilesof.com:8443/repository/pypi-all/simple/"
verify_ssl = true

[dev-packages]

[packages]
aniso8601 = "==7.0.0"
Click = "==7.0"
Flask = "==1.1.1"
Flask-GraphQL = "==2.0.1"
graphene = "==2.1.8"
graphene-sqlalchemy = "==2.2.2"
graphql-core = "==3.0.3"
graphql-relay = "==2.0.1"
graphql-server-core = "==1.2.0"
iso8601 = "==0.1.14"
itsdangerous = "==1.1.0"
Jinja2 = "==2.11.0"
MarkupSafe = "==1.1.1"
promise = "==2.3"
Rx = "==1.6.1"
singledispatch = "==3.4.0.3"
six = "==1.14.0"
SQLAlchemy = "==1.3.13"
Werkzeug = "==0.16.0"

[requires]
python_version = "3.6"
python pip pipenv
1个回答
0
投票

请参考此link,我相信这对您的问题很有用。

© www.soinside.com 2019 - 2024. All rights reserved.