1
votes

I am using powershell. I successfully installed virtualenvwrapper-powershell.

But when I typed 'Import-Module virtualenvwrapper', I got an error as following:

PS C:\Python27> Import-Module virtualenvwrapper Import-Module : The specified module 'virtualenvwrapper' was not loaded because no valid module file was found in any module directory. At line:1 char:1

Import-Module virtualenvwrapper ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CategoryInfo : ResourceUnavailable: (virtualenvwrapper:String) [Import-Module], FileNotFoundException FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

It would be great if you could give me some advice...

2

2 Answers

0
votes

You need to either store the module in a folder with the same name as the module or you need to use .psm1 with the import command. For your case, you need to store the module in the following path

C:/Python27/virtualenvwrapper/virtualenvwrapper.psm1

and therefore you can use this command

Import-Module virtualenvwrapper

or call your module using this command

Import-Module virtualenvwrapper.psm1

If neither of these works, then you might find this link helpful installing virtualenvwrapper

1
votes

You need to paste the VirtualEnvWrapper folder in the following directory. It works for me

**

` C:\Windows\System32\WindowsPowerShell\v1.0\Modules

`

**