Muh*_*ğan 10 django ubuntu amazon-web-services django-deployment pipenv
我完成了我的 django 项目。并且 \xc4\xb1 想要在 aws 上部署我的项目。我从 github 拉取我的项目,然后在 aws(ubuntu) 上的虚拟计算机上运行 pipelinenv install,我每次都会收到此错误。
\nERROR:: --system is intended to be used for pre-existing Pipfile installation, not installation of specific packages. Aborting.\nRun Code Online (Sandbox Code Playgroud)\n我该如何解决这个问题
\nHar*_*aru 17
请运行此代码。
pipenv --venv
Run Code Online (Sandbox Code Playgroud)
返回一个文件目录。该文件由于某些原因已经折叠。所以你删除这个文件并重新制作它。
就我而言,这种方式解决了我的问题。
小智 13
您可以使用以下命令获取有关任何正在运行的虚拟环境的信息
pipenv --venv
Run Code Online (Sandbox Code Playgroud)
要结束虚拟环境,请运行:
pipenv --rm
Run Code Online (Sandbox Code Playgroud)
这为我解决了问题。另外,不要害怕利用标签的现有文档--help。
小智 5
您可以删除现有的环境,
pipenv --rm
Run Code Online (Sandbox Code Playgroud)
并重新创建环境
python3 -m pipenv shell
Run Code Online (Sandbox Code Playgroud)
或者,这也可以:从父目录之外创建一个文件夹,然后在新文件夹中创建一个虚拟环境
python3 -m pipenv shell
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9982 次 |
| 最近记录: |