相关疑难解决方法(0)

virtualenv的问题 - 无法激活

我围绕我的项目创建了一个virtualenv,但是当我尝试激活它时我不能.它可能只是语法或文件夹位置,但我现在很难过.

你可以在下面看到,我创建了virtualenv并称之为venv.一切看起来都不错,然后我尝试通过运行来激活它source venv/bin/activate

我想它可能只与我的系统路径有关,但不知道该指向什么(我知道如何编辑路径).我在python 7/windows os,虚拟环境2.2.x

Processing dependencies for virtualenv
Finished processing dependencies for virtualenv

c:\testdjangoproj\mysite>virtualenv --no-site-packages venv
The --no-site-packages flag is deprecated; it is now the default behavior.
Using real prefix 'C:\\Program Files (x86)\\Python'
New python executable in venv\Scripts\python.exe
File venv\Lib\distutils\distutils.cfg exists with different content; not overwri
ting
Installing setuptools.................done.
Installing pip...................done.

c:\testdjangoproj\mysite>source venv/bin/activate
'source' is not recognized as an internal or external command,
operable program or batch file.

c:\testdjangoproj\mysite>source venv/bin/activate
'source' is not recognized …

python virtualenv

90
推荐指数
9
解决办法
10万
查看次数

标签 统计

python ×1

virtualenv ×1