Install virtualenvwrapper-powershell on Windows 8.1, import module error

I am trying to follow the manual here and I am stuck in Import-Module virtualenvwrapperwhere PowerShell continues to give me an error:

import-module: the specified "virtualenvwrapper" module was not loaded because no valid module file was found in any module directory.

In line: 1 char: 1

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

I have a real loss in what to do here, because as far as I can tell from this manual and others, this step should be fairly straightforward. Going to this problem didn’t really help me, since I can’t find anyone else with this problem.

+4
source share
2 answers

Well, I actually decided my way around this problem. I think pip install never put files in the right modules directory for PowerShell. I created a folder WindowsPowerShell\Modulesin my documents folder that did not exist, but was listed in my PowerShell modules path. Then I took the VirtualEnvWrapper directory from the virtual piece of the virtual machine and copied it into the Modules folder that I just created.

Set-ExecutionPolicy Unrestricted Set-ExecutionPolicy RemoteSigned, , - . , , pip, , , - .

+5

, . . , , Windows 10.

:

- virtualenvwrapper

"Get-Content: Can not find path" :\TabExpansion ', .

, , , VirtualenvWrapperTabExpansion.psm1 15 :

$_oldTabExpansion = Get-Content Function:TabExpansion

:

$_oldTabExpansion = Get-Content Function:TabExpansion2
+7

All Articles