我似乎无法在任何虚拟环境中运行我的Sublime Text 3版本。我最近的尝试是在sublime文本中使用Virtualenv
包并使用以下项目设置:
{
"folders":
[
{
"path": "."
}
],
"virutalenv": "C:\\Users\\alexa\\Envs\\test5",
"settings": "C:\\Users\\alexa\\Envs\\test5\\Scripts\\python"
}
我希望venv
已安装pandas
:
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 :(得分:0)