Installing virtualenvwrapper-powershell in Windows 8.1, import-module failing

前端 未结 2 1640
囚心锁ツ
囚心锁ツ 2021-01-06 04:46

I\'m trying to follow the guide here, and I\'m stuck at Import-Module virtualenvwrapper, where PowerShell keeps giving me the error:

impo

2条回答
  •  感情败类
    2021-01-06 05:41

    Thank you for coming back with a solution. This helped me today. I would also like to add that I had to do an extra step to make it work on Windows 10.

    I was getting an error trying to run:

    Import-Module virtualenvwrapper

    "Get-Content : Cannot find path 'Function:\TabExpansion' because it does not exist."

    The solution that I found, was to edit VirtualenvWrapperTabExpansion.psm1 on line 15 from this:

    $_oldTabExpansion = Get-Content Function:TabExpansion
    

    to this:

    $_oldTabExpansion = Get-Content Function:TabExpansion2
    

提交回复
热议问题