2017-06-09 6 views
0

仮想環境でサブライムテキスト3ビルドを実行できないようです。私の最新の試みは崇高なテキストでVirtualenvパッケージを使用することであって、次のプロジェクト設定を使用していますバーチャル環境で構築するWindows用サブライムテキスト3

{ 
"folders": 
[ 
    { 
    "path": "." 
    } 
], 

    "virutalenv": "C:\\Users\\alexa\\Envs\\test5", 
    "settings": "C:\\Users\\alexa\\Envs\\test5\\Scripts\\python" 
} 

私はpandasがインストールされているvenvを希望:

C:\Users\alexa\Envs\test5\Scripts>activate 
(test5) C:\Users\alexa\Envs\test5\Scripts>pip install pandas 
Requirement already satisfied: pandas in c:\users\alexa\envs\test5\lib\site-packages 
Requirement already satisfied: python-dateutil>=2 in c:\users\alexa\envs\test5\lib\site-packages (from pandas) 
Requirement already satisfied: numpy>=1.7.0 in c:\users\alexa\envs\test5\lib\site-packages (from pandas) 
Requirement already satisfied: pytz>=2011k in c:\users\alexa\envs\test5\lib\site-packages (from pandas) 
Requirement already satisfied: six>=1.5 in c:\users\alexa\envs\test5\lib\site-packages (from python-dateutil>=2->pandas) 

(test5) C:\Users\alexa\Envs\test5\Scripts> 

しかし、私はある私のビルドを実行するときPython + Virtualenvに設定され、私は次を得る:

Traceback (most recent call last): 
    File "C:\Users\alexa\Desktop\SBP\first.py", line 2, in <module> 
    import pandas 
ModuleNotFoundError: No module named 'pandas' 
[Finished in 0.4s with exit code 1] 
[shell_cmd: python -u "C:\Users\alexa\Desktop\SBP\first.py"] 
[dir: C:\Users\alexa\Desktop\SBP] 
[path: C:\Program Files\Dell\DW WLAN Card;;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 (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Python35-32;C:\Python35-32\Lib\site-packages\;C:\Python35-32\Scripts\;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;] 
+0

ビルドはあなたが作った仮想環境から実行されていることを多くの兆候はありません。 – pvg

+0

@pvg私は同意します。だから私はこれをどうやってやるの? – thefoxrocks

+0

これらの 'python virtualenv'設定はどこで設定していますか?テストとして試してみることの1つは、起動したvenvから崇高なものを起動することです。しかし、それが独立して働くためには、崇高なことを認識し、あなたの特定のvenvを活性化しなければなりません。 – pvg

答えて

0

あなたがこの質問をチェックアウトしたことがありますか?それはかなり似ているようで、いくつかの有用な回答があります。また、仮想環境内でpipをフリーズして、仮想環境にpandasがインストールされているかどうかを確認してください。

Python modules not found in virtualenv

+0

はい、 'pandas'は' pip freeze'で表示されます。私は問題がvirtualenvに接続する方法だと思う – thefoxrocks

+0

あなたの環境名に 'workon'を実行した後に、Pythonインタプリタでスクリプトを手動で実行しようとしましたか? – rdurrani

関連する問題