There is no activate when I am trying to run my virtual env

后端 未结 5 836
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-07 02:44

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 s

相关标签:
5条回答
  • 2021-02-07 03:25

    I solved the similar problem running python3.7 -m venv venv, you can change for your version of python that is installed in your enviroment.

    0 讨论(0)
  • 2021-02-07 03:30

    I double it is caused by some networking issue, I run it twice to get 'activate' script installed. Maybe first it can't connect to some source so it just abort installation.

    0 讨论(0)
  • 2021-02-07 03:38

    I solved a similar problem by naming it venv2 when I ran virtualenv. I already had a virtual environment named venv for another project. This allowed me to proceed.

    0 讨论(0)
  • 2021-02-07 03:45

    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.

    0 讨论(0)
  • 2021-02-07 03:47

    I experienced this problem when using the --upgrade option. Removed the option, and all ran as expected.

    0 讨论(0)
提交回复
热议问题