简体   繁体   English

zsh:找不到命令:virtualenv

[英]zsh: command not found: virtualenv

I am trying to install virtualenv on Mac Terminal for Django but its showing me - zsh: command not found: virtualenv and i also tried following command我正在尝试在 Mac 终端上为 Django 安装 virtualenv,但它向我显示 - zsh: command not found: virtualenv 我也尝试了以下命令

@macbook-air trydjango % virtualenv-p python3. @macbook-air trydjango % virtualenv-p python3。

zsh: command not found: virtualenv -p zsh:找不到命令:virtualenv -p

@macbook-air trydjango % pip install virtualenv @macbook-air trydjango % pip 安装 virtualenv

zsh: command not found: pip zsh:找不到命令:pip

I also tried to run the commands ad per this article https://opensource.com/article/19/5/python-3-default-mac#what-to-do我还尝试按照本文https://opensource.com/article/19/5/python-3-default-mac#what-to-do运行命令广告

$ brew install pyenv $ brew install pyenv

but not working但不工作

How can i install this.我该如何安装这个。

I have no idea where to begin researching this.我不知道从哪里开始研究这个。

Try installing in the right directory with this command: sudo /usr/bin/easy_install virtualenv尝试使用以下命令在正确的目录中安装:sudo /usr/bin/easy_install virtualenv

Also check this link for other variants to solve the problem: https://appuals.com/how-to-fix-command-not-found-error-on-virtualenv/另请查看此链接以了解其他变体以解决问题: https://appuals.com/how-to-fix-command-not-found-error-on-virtualenv/

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

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