pipenv install = блокировка Pipenv + синхронизация Pipenv.
Итак, если Pipfile.lock повторно заблокирован, установите его из Pipfile. lock, тогда в чем разница между pipenv install и Pipenv install --ignore-pipfile?
Я думаю, если мы хотим только установить из Pipfile.lock, то вместо этого нам следует использовать синхронизацию Pipenv.
Например:
# Pipfile
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
"requests" = "==2.11.0"
[dev-packages]
[requires]
python_version = "3.12"
# Pipfile.lock
{
"_meta": {
"hash": {
"sha256": "7f1be087f2e6adbe8ec64f71bfaaed8b6bb1595f3769488039b14c9d2e555dca"
},
"pipfile-spec": 6,
"requires": {
"python_version": "3.12"
},
"sources": [
{
"name": "pypi",
"url": "https://pypi.org/simple",
"verify_ssl": true
}
]
},
"default": {
"requests": {
"hashes": [
"sha256:09bc1b5f3a56cd8c48d433213a8cba51a67d12936568f73b5f1793fcb0c0979e",
"sha256:63f1815788157130cee16a933b2ee184038e975f0017306d723ac326b5525b54"
],
"index": "pypi",
"markers": "python_version >= '3.8'",
"version": "==2.10.0"
}
},
"develop": {}
}
Если я запустил установку Pipenv:
$ pipenv install
Pipfile.lock (555dca) out of date: run `pipfile lock` to update to (14165b)...
Running $ pipenv lock then $ pipenv sync.
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
✔ Success!
Locking [dev-packages] dependencies...
Updated Pipfile.lock (793cf11c853344d4cc8f42ede41e771eb6afaccce2510f7daf1efb578d14165b)!
Installing dependencies from Pipfile.lock (14165b)...
All dependencies are now up-to-date!
Installing dependencies from Pipfile.lock (14165b)...
Если я запустил Pipenv, установите --ignore-pipfile:
$ pipenv install --ignore-pipfile
Pipfile.lock (555dca) out of date: run `pipfile lock` to update to (14165b)...
Running $ pipenv lock then $ pipenv sync.
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
✔ Success!
Locking [dev-packages] dependencies...
Updated Pipfile.lock (793cf11c853344d4cc8f42ede41e771eb6afaccce2510f7daf1efb578d14165b)!
Installing dependencies from Pipfile.lock (14165b)...
All dependencies are now up-to-date!
Installing dependencies from Pipfile.lock (14165b)...
Никакой разницы.
Если я запущу синхронизацию Pipenv:
$ pipenv sync
Installing dependencies from Pipfile.lock (555dca)...
All dependencies are now up-to-date!
Подробнее здесь: https://stackoverflow.com/questions/787 ... s-no-sense
Pipenv install --ignore-pipfile не имеет смысла ⇐ Python
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Как изменить [[источник]] для Pipfile, чтобы лучше использовать Pipenv?
Anonymous » » в форуме Python - 0 Ответы
- 10 Просмотры
-
Последнее сообщение Anonymous
-
-
-
`pipenv install` не устанавливает mysqlclient правильно, а `pip install` делает это
Anonymous » » в форуме Python - 0 Ответы
- 68 Просмотры
-
Последнее сообщение Anonymous
-