使用 pipenv.lock 文件克隆存储库并创建 python 虚拟环境的过程是什么?
What is the process to clone a repo and recreate the python virtual enviroment using the pipenv.lock file?
克隆存储库并使用 pipenv.lock 文件重新创建 python 虚拟环境的过程是什么?
在我的开发系统上,我使用 pyenv 和 pipenv 创建了一个虚拟环境,并准备在另一个系统上测试我的代码。我已经在测试系统上安装了 pyenv/pipenv/python(与开发机器相同的版本),但是我不知道如何告诉 pipenv 使用版本控制器的内容在测试系统上创建相同的虚拟环境 Pipfile.lock 文件。
我要做什么 'pipenv install --python '?
或者只是 'pipenv install' 它会找到并读取 .lock 文件?
pipenv install --python <version>
pipenv install
我希望安装一个虚拟环境,其中包含锁定文件中指定的所有 requirements/dependencies。
根据 this article 只是:
pipenv install --ignore-pipfile
This tells Pipenv to ignore the Pipfile for installation and use what’s in the Pipfile.lock. Given this Pipfile.lock, Pipenv will create the exact same environment you had when you ran pipenv lock, sub-dependencies and all.
克隆存储库并使用 pipenv.lock 文件重新创建 python 虚拟环境的过程是什么?
在我的开发系统上,我使用 pyenv 和 pipenv 创建了一个虚拟环境,并准备在另一个系统上测试我的代码。我已经在测试系统上安装了 pyenv/pipenv/python(与开发机器相同的版本),但是我不知道如何告诉 pipenv 使用版本控制器的内容在测试系统上创建相同的虚拟环境 Pipfile.lock 文件。 我要做什么 'pipenv install --python '? 或者只是 'pipenv install' 它会找到并读取 .lock 文件?
pipenv install --python <version>
pipenv install
我希望安装一个虚拟环境,其中包含锁定文件中指定的所有 requirements/dependencies。
根据 this article 只是:
pipenv install --ignore-pipfile
This tells Pipenv to ignore the Pipfile for installation and use what’s in the Pipfile.lock. Given this Pipfile.lock, Pipenv will create the exact same environment you had when you ran pipenv lock, sub-dependencies and all.