当我尝试运行虚拟环境时没有激活 [英] There is no activate when I am trying to run my virtual env

查看:71
本文介绍了当我尝试运行虚拟环境时没有激活的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1)我使用pip安装了virtualenv.
2)我运行了命令virtualenv venv
3)然后我运行source venv/bin/activate,但是它说没有这样的文件或目录.

1) I installed virtualenv using pip.
2) I ran the command virtualenv venv
3) Then I ran source venv/bin/activate but it says that there is no such file or directory.

当我cd进入venv/bin时,我发现3件事-python,python 2.7和python 3.5.有人知道这个问题吗?

When I cd into venv/bin I find 3 things - python, python 2.7, and python 3.5. Does anyone know the problem?

推荐答案

我遇到了同样的问题.而我所做的就是运行命令 virtualenv env 再次.然后在目录env/bin下生成了更多文件,包括激活文件.太奇怪了也许您可以尝试更多.

i have had the same problem. and what i did is just run the command virtualenv env again. And then more files were generated under directory env/bin, including the activate file. it's so weird. maybe you can have more try.

这篇关于当我尝试运行虚拟环境时没有激活的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆