poewrshellを使って、Data Visualizationを学びはじめた者です。
Pythonのversionは2.7
windowsは8.1を使用しています。
私の、システム環境変数パスは、
lang
1c:\python27\;c:\python27\scripts;c:\python27\tools\scripts;C:\Program Files (x86)\Common Files\Apple\Apple Application Support;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\12.0\DLLShared\;C:\Program Files (x86)\Roxio 2010\OEM\AudioCore\;C:\Program Files (x86)\Brackets\command;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\Git\bin;C:\Program Files (x86)\Git\cmd
現在、基本的に(http://newcoder.io/begin/setup-your-machine/#windows)のガイダンスに沿って、コンピューター環境を整えている状態です。
powershell, python, git, pip, virtualenv, virtualenvwrapper-powershellのインストールは(助けてもらいながら)順調に進んだのですが、
type:```lang-<ここに言語を入力>
Import-Module virtualenvwrapper
私が、Import-Module virtualenvwrapperと入力すると、以下のエラーメッセージが得られます。 ```lang-<ここに言語を入力> 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
また、モジュールを、そのモジュールと同じ名前のフォルダに保存するか、.psm1をコマンドに使うと上手くいくかもしれないよ。とのご指摘を頂き、((http://stackoverflow.com/questions/31096527/import-module-virtualenvwrapper/31097136#31097136))
lang
1C:\Python27\virtualenvwrapper 2``` にvirtualenvwrapper.psm1を配置し、 3```lang-<ここに言語を入力> 4Import-Module virtualenvwrapper 5```を実行してみましたが、エラーメッセージは上記と同じでした。。 6 7```lang-<ここに言語を入力> 8Import-Module : The specified module 'virtualenvwrapper' was not loaded because no valid module file was found in any 9module directory. 10At line:1 char:1 11+ Import-Module virtualenvwrapper 12+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 13 + CategoryInfo : ResourceUnavailable: (virtualenvwrapper:String) [Import-Module], FileNotFoundException 14 + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
また、```lang-<ここに言語を入力>
Import-Module virtualenvwrapper.psm1
```lang-<ここに言語を入力> Import-Module : The specified module 'virtualenvwrapper.psm1' was not loaded because no valid module file was found in any module directory. At line:1 char:1 + Import-Module virtualenvwrapper.psm1 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ResourceUnavailable: (virtualenvwrapper.psm1:String) [Import-Module], FileNotFoundExcept ion + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
また、```lang-<ここに言語を入力>
Import-Module C:\Python27\virtualenvwrapper\virtualenvwrapper.psm1
```lang-<ここに言語を入力> PS C:\python27> Import-Module C:\Python27\virtualenvwrapper\virtualenvwrapper.psm1 Import-Module : The specified module 'C:\Python27\virtualenvwrapper\virtualenvwrapper.psm1' was not loaded because no valid module file was found in any module directory. At line:1 char:2 + Import-Module C:\Python27\virtualenvwrapper\virtualenvwrapper.psm1 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ResourceUnavailable: (C:\Python27\vir...envwrapper.psm1:String) [Import-Module], FileNot FoundException + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
lang
1WindowsPowerShell\Modules 2``` というフォルダーをドキュメントに作成し、(the virtualenvwrapper-powershell bitbucket )からとってきた、```lang-<ここに言語を入力> 3VirtualEnvWrapper 4``` ディレクトリを 5Modulesフォルダに設置し、```lang-<ここに言語を入力> 6Set-ExecutionPolicy Unrestricted 7```を実行してから```lang-<ここに言語を入力> 8Import-Module virtualenvwrapper 9```を実行したのですが、やはりエラーとなりました。。 10 11 12エラーメッセージは以下の通りです。 13 14```lang-<ここに言語を入力> 15PS C:\python27> Set-ExecutionPolicy Unrestricted 16 17Execution Policy Change 18The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose 19you to the security risks described in the about_Execution_Policies help topic at 20http://go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy? 21[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): y 22PS C:\python27> Import-Module virtualenvwrapper 23Import-Module : The specified module 'virtualenvwrapper' was not loaded because no valid module file was found in any 24module directory. 25At line:1 char:1 26+ Import-Module virtualenvwrapper 27+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 28 + CategoryInfo : ResourceUnavailable: (virtualenvwrapper:String) [Import-Module], FileNotFoundException 29 + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand 30
長々と申し訳ございませんでした。
どなたか、何かアイデアのございます方、お力を貸して頂けますと助かります。。
あなたの回答
tips
プレビュー