venv doesn't create activate script python3

前端 未结 5 742
被撕碎了的回忆
被撕碎了的回忆 2020-12-23 00:02

When trying to create a virtulenv using venv with python 3 on ubuntu it isn’t creating an activate script. It conitunally exits with an error 1.

Following docs and o

5条回答
  •  滥情空心
    2020-12-23 00:46

    This worked for me:

    python3 -m venv --without-pip test4
    

    Once I typed that in the terminal, the "test4" venv was created. And the 'activate' script was also created in the 'bin' directory.

    To anyone using python3, having trouble with this, just substitute the name of the directory you want to create for "test4" (or rename it later).

    That should do it.

提交回复
热议问题