2015-08-11 3 views
1

успешно провелНе удается получить virtualenvwrapper работать

pip install virtualenvwrapper 

, но я не могу получить следующие две команды для запуска.

PS C:> export WORKON_HOME=~/Envs 

Ошибка:

The term 'export' is not recognized as the name of a cmdlet, function, script file, or 
operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again. 
At line:1 char:7 
+ export <<<< WORKON_HOME=~/Envs 
    + CategoryInfo   : ObjectNotFound: (export:String) [], CommandNotFoundException 
    + FullyQualifiedErrorId : CommandNotFoundException
PS C:> source /usr/local/bin/virtualenvwrapper.sh 

Ошибка:

The term 'source' is not recognized as the name of a cmdlet, function, script file, or 
operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again. 
At line:1 char:7 
+ source <<<< /usr/local/bin/virtualenvwrapper.sh 
    + CategoryInfo   : ObjectNotFound: (source:String) [], CommandNotFoundException 
    + FullyQualifiedErrorId : CommandNotFoundException

Я предполагаю, что моя проблема в том, что я не знаю, что я делаю с помощью PowerShell. Изначально я не мог получить pip или virtualenv работать на всех, пока я не вошел:

[Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\Python27\Scripts", "User") 

После того, как я сделал, что я был в состоянии работать pip или virtualenv из любого места без проблем. Я не могу понять, как успешно запустить последние две строки, указанные на странице virtualenvwrapper.

+1

virtualenvwrapper предназначен для операционных систем * nix. – Cyphase

ответ