Error Importing Virtualenvwrapper To The Powershell
Solution 1:
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.
Solution 2:
You must be following the setup instructions for http://newcoder.io/begin/setup-your-machine/#windows. Me too. Here is how I fixed it:
- From Powershell, type "Get-ChildItem Env:PSModulePath" The value of this variable tells you the folder that Powershell looks when importing modules.
- pip installed my module to "C:\Python27\Lib\site-packages\Users\\Documents\WindowsPowerShell\Modules\virtualenvwrapper"
- Copy that folder to the folder from step #1
- Restart Powershell
Solution 3:
This helped me out so much
After going to pc -> C: -> Python27 -> Lib -> site-packages -> users -> * your user * -> WindowsPowerShell -> Modules -> Copy the VirtualEnvWrapper
In a self made directory in Documents call it WindowsPowerShell and then make another inside it called Modules Copy the VirtualEnvWrapper folder within this.
then drop a set-executionpolicy unrestricted in CMD as ADMINISTRATOR !!!
followed by a Import-Module virtualenvwrapper
and you should be 100%
Solution 4:
I had the same issue today on a fresh win 10 system. For some reason the VirtualEnvWrapper seems to create a User folder in the site-packages folder inside your Python installation, where it can't be found. Just moving the "Modules" with all its content did the trick.
-> (in my case from:)
C:\Program Files (x86)\Python27\Lib\site-packages\Users\*USER*\Documents\WindowsPowerShell\**Modules**\VirtualEnvWrapper
-> to C:\Users\*USER*\Documents\WindowsPowerShell\**Modules**\VirtualEnvWrapper
..did the trick... where your powershell profile can find it ;)
Post a Comment for "Error Importing Virtualenvwrapper To The Powershell"