当我尝试运行虚拟环境时没有激活

编程入门 行业动态 更新时间:2024-10-28 02:32:07
本文介绍了当我尝试运行虚拟环境时没有激活的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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.

更多推荐

当我尝试运行虚拟环境时没有激活

本文发布于:2023-11-24 03:02:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1623737.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:当我   环境

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!