简体   繁体   English

mkvirtualenv返回-bash:mkvirtualenv:找不到命令

[英]mkvirtualenv returns -bash: mkvirtualenv: command not found

I installed virtualenv and virtualenvwrapper successfully with pip. 我通过pip成功安装了virtualenv和virtualenvwrapper。 I'm running OSX Yosemite. 我正在运行OSX Yosemite。 I tested it when I first installed it (following instructions at newcoder.io )and it worked, but now it doesn't. 我在初次安装时进行了测试(按照newcoder.io上的说明进行操作 ),并且可以正常工作,但是现在不行了 I tried using the "source" command: source "/Library/Python/2.7/site-packages/virtualenv.sh" but I get the response "-bash: cd: python: No such file or directory." 我尝试使用“源”命令:源“ /Library/Python/2.7/site-packages/virtualenv.sh”,但得到响应“ -bash:cd:python:没有这样的文件或目录”。

Did I tweak something that knocked it offline? 我是否调整了一些使其离线的内容? Thanks in advance for help! 在此先感谢您的帮助!

OK, I got it, I think! 好吧,我知道了! I had been using "source" plus the path that the install program told me the program was in (see above) instead of the one that is recommended in similar questions. 我一直在使用“源代码”以及安装程序告诉我该程序所在的路径(参见上文),而不是类似问题中建议的路径。 (OK, so I was overthinking this one). (好的,所以我想得太多了)。 Anyway. 无论如何。 I'm happy, I got it on my own! 我很高兴,我一个人得到了!

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

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