我无法在 Windows 10 上激活 virtualenv [英] I cannot activate virtualenv on windows 10
本文介绍了我无法在 Windows 10 上激活 virtualenv的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用以下命令在 Windows 10x64 上激活 virtualenv:
I am trying to activate virtualenv on windows 10x64 by using this command:
source \env\Scripts\activate.bat
但我收到此错误:
source : The term 'source' is not recognized as the name of a cmdlet, function, script file,
or operable program. Check the spelling of the name, or if a path was included, verify that
the path is correct and try again.
At line:1 char:1
+ source \env\Scripts\activate.bat
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (source:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
推荐答案
好吧,source 是一个 shell 命令,只在 Linux 系统中使用,但不适用于 windows 系统.在窗口中,您应该将其运行为...(假设目录在 C 中:)
Ok about that, source is a shell command that only used in Linux systems, but not for windows systems. In window you should run it as...(Let's assume directory is inside of C:)
C:\Users\env\Scripts\activate.bat
这篇关于我无法在 Windows 10 上激活 virtualenv的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文