Python setup : command not found

后端 未结 4 1707
春和景丽
春和景丽 2020-12-19 12:05

Apologies if this is a basic question:

I have been trying to setup Python on my laptop by following the tutorial here. Under PIP, VIRTUALENV + VIRTUALENVWRAPPER<

4条回答
  •  执笔经年
    2020-12-19 13:01

    I was having this same problem but got it to work a different way in Windows.

    pip install virtualenv
    virtualenv venv
    
    .\venv\Scripts\activate.bat
    

    The key here is running activate.bat rather than just activate. Once I did this and closed and opened cmd again and tried the normal

    .\venv\Scripts\activate
    

    it worked. I don't know why but it worked for me, hopefully it helps somebody else.

提交回复
热议问题