简体   繁体   English

我无法运行 pipenv install django

[英]I can't run pipenv install django

Whenever I enter pipenv install django in the cmd an error appears:每当我在 cmd 中输入 pipenv install django 时,就会出现错误:

" 'pipenv' is not recognized as an internal or external command, operable program or batch file. " “‘pipenv’不是内部或外部命令,也不是可运行的程序或批处理文件。”

I can run: pip install pipenv and: pip install django我可以运行:pip 安装 pipenv 和:pip 安装 django

I solved it by re-installing python then checked the check box called " add python to PATH " and it worked perfect with no errors我通过重新安装 python 解决了这个问题,然后选中了名为“将 python 添加到 PATH”的复选框,它完美无误地工作

Checking "add python to PATH" when installing Python will only work for Python and pip commands.安装 Python 时选中“将 python 添加到 PATH”将仅适用于 Python 和 pip 命令。 However, while installing " pipenv " using " pip install pipenv " command, pipenv will be installed but it might not be added to the PATH environment variables and you have to do it manually.但是,在使用“ pip install pipenv ”命令安装“ pipenv ”时, pipenv将被安装,但它可能不会添加到 PATH 环境变量中,您必须手动安装。 Doing this, most probably the error " pipenv is not recognized... " will disappear.这样做,很可能错误“ pipenv is not recognized... ”将会消失。 I solved this issue when I realized pipenv is not added to the environment variables.当我意识到没有将pipenv添加到环境变量时,我解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM