我使用pipenv install django
安装了django
我检查使用Django安装的版本
python -m django --version
3.0.3
所以它的3.0.3
在安装更多软件包之后的某个时候,我pipenv lock
做完了
我检查了Pipfile.lock,以查看它锁定到django
的哪个3.0.6
版本
{
"_meta": {
"hash": {
"sha256": "1c89f4b79e61ac01a5f1b50db6b6b0b4ba34199a99f96caf61885884b43a8b3a"
},
"pipfile-spec": 6,
"requires": {
"python_version": "3.7"
},
"sources": [
{
"name": "pypi",
"url": "https://pypi.org/simple",
"verify_ssl": true
}
]
},
"default": {
....
"django": {
"hashes": [
"sha256:051ba55d42daa3eeda3944a8e4df2bc96d4c62f94316dea217248a22563c3621",
"sha256:9aaa6a09678e1b8f0d98a948c56482eac3e3dd2ddbfb8de70a868135ef3b5e01"
],
"index": "pypi",
"version": "==3.0.6"
},
....
}
"develop": {
....
"django": {
"hashes": [
"sha256:051ba55d42daa3eeda3944a8e4df2bc96d4c62f94316dea217248a22563c3621",
"sha256:9aaa6a09678e1b8f0d98a948c56482eac3e3dd2ddbfb8de70a868135ef3b5e01"
],
"index": "pypi",
"version": "==3.0.6"
},
....
}
这是我的Pipfile
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
django-extensions = "*"
ipython = "*"
werkzeug = "*"
pydotplus = "*"
django-querycount = "*"
jupyter = "*"
flower = "*"
django-request-logging = "*"
[packages]
django = "*"
psycopg2 = "*"
django-environ = "*"
celery = "*"
redis = "==3.3.11"
pyjwt = "*"
django-webpack-loader = "*"
django-rest-framework = "*"
kombu = "*"
django-otp = "*"
pyotp = "*"
gunicorn = "*"
[requires]
python_version = "3.7"
我还检查了pipenv graph
中的版本,它显示了正确安装的版本3.0.3
django-environ==0.4.5
django-extensions==2.2.6
- six [required: >=1.2, installed: 1.14.0]
django-otp==0.9.0
- django [required: >=1.11, installed: 3.0.3]
- asgiref [required: ~=3.2, installed: 3.2.7]
- pytz [required: Any, installed: 2019.3]
- sqlparse [required: >=0.2.2, installed: 0.3.0]
django-querycount==0.7.0
django-request-logging==0.7.0
- Django [required: Any, installed: 3.0.3]
- asgiref [required: ~=3.2, installed: 3.2.7]
- pytz [required: Any, installed: 2019.3]
- sqlparse [required: >=0.2.2, installed: 0.3.0]
django-rest-framework==0.1.0
- djangorestframework [required: Any, installed: 3.11.0]
- django [required: >=1.11, installed: 3.0.3]
- asgiref [required: ~=3.2, installed: 3.2.7]
- pytz [required: Any, installed: 2019.3]
- sqlparse [required: >=0.2.2, installed: 0.3.0]
django-webpack-loader==0.7.0
因此,如何了解Pipfile.lock中的3.0.6
。当我尝试使用此文件创建新的虚拟环境时,我的Django版本将从3.0.3
更改为3.0.6
当然,这可能并不重要。但是,如果版本从3.0.3
更改为3.2.0
(然后是它的主要更改),我担心。