I have python 2.7 installed perfectly, and also pip, and I have been running the PowerShell as admin.
I did:
pip install virtualenv
and
pip install virtualenvwrapper-powershell
and they both were succesfull.
I also did this:
mkdir '~.virtualenvs'
However, whenever I try to:
Import-Module virtualenvwrapper
it always gets me this error: Import-Module: The specific module 'virtualenvwrapper' was not loaded because no valid module file was found in any module directory.
I did pip install virtualenvwrapper-powershell again just to make sure, and I got this: Requirement already satisfied (use --upgrade to upgrade): virtualenvwrapper-powershell in c:\python27\lib\site-packages
What could be wrong ?
I met the same problem when I tried to do the exact same thing as what you did. Finally I figured it out. I found that the virtualenvwrapper I installed is somehow not in the current folder (C:). Instead, it is hidden in the folder:
C:\Python27\Lib\site-packages\Users\*myusername*\Documents\WindowsPowerShell\Modules\VirtualEnvWrapper
I recommend you go to your Python folder and try to search something like
"\Lib\site-packages\Users\*myusername*\Documents\WindowsPowerShell\Modules\"
and if you can find the module VirtualEnvWrapper there, then when you type the command, you just need to include the complete path.
I hope it will help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With