Python setup : command not found

后端 未结 4 1706
春和景丽
春和景丽 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 12:49

    I had encountered with the same problem and solved it by downloading mktemp binary for windows and uncompressing it under git/bin. Then it works. (I was trying to run leiningen [lein help] command under Git Bash, on Windows 7)

    This is the download site i visited.

    0 讨论(0)
  • 2020-12-19 12:54

    According to your comment, virtualenvwrapper.sh is not in /usr/local/bin.

    You should pass correct path to source command.

    source /path/to/..../Scripts/virtualenvwrapper.sh
    
    0 讨论(0)
  • 2020-12-19 12:57

    From what you wrote it looks to me that you are mixing Windows and Linux shell commands.

    I strongly advocate you get the virtualenv working first before you turn to a wrapper

    To get virtualenv on Windows 7

    pip install virtualenv
    

    then

    virtualenv name_to_your_env
    
    name_to_your_env\Scripts\activate
    
    0 讨论(0)
  • 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.

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