Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
813 views
in Technique[技术] by (71.8m points)

windows - Python setup : command not found

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 subtitle, it says

  1. And now setup virtualenvwrapper:

    1 $ export WORKON_HOME=$HOME/.virtualenvs
    
    2 $ export MSYS_HOME=/c/msys/1.0
    
    3 $ source /usr/local/bin/virtualenvwrapper.sh
    

The last line of above gives me the following error:

$ source /usr/local/bin/virtualenvwrapper.sh
sh.exe": /usr/local/bin/virtualenvwrapper.sh: No such file or directory

So when I test my setup I get the following error:

$ mkvirtualenv TestEnv
sh.exe": mkvirtualenv: command not found

Could some1 help me out please?

THis is all on a Win7 laptop.

Thanks.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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_envScriptsactivate

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...