[英]How can I change the real directory to Python.exe in Spyder and PTVS?
If I look at the Path Browser in IDLE, it points here on my machine.如果我在 IDLE 中查看路径浏览器,它会指向我机器上的此处。
C:\Users\Excel\AppData\Local\Programs\Python\Python36-32\
The code below works fine in IDLE import pandas_datareader as web df = web.DataReader('MSFT','google') df.head()下面的代码在 IDLE import pandas_datareader as web df = web.DataReader('MSFT','google') df.head() 中工作正常
However, in Spyder and Python Tools for Visual Studio I get the following error.但是,在 Visual Studio 的 Spyder 和 Python 工具中,我收到以下错误。
ModuleNotFoundError: No module named 'pandas_datareader'
It must be the engine that Spyder and PTVS are pointing to.一定是Spyder和PTVS指向的引擎。 I can't figure out how to re-point these software packages to the right engine.
我不知道如何将这些软件包重新指向正确的引擎。 I am using Python 3.6.
我正在使用 Python 3.6。
You can easily find out what the你可以很容易地找出什么
path that Spyder is pointing to
Spyder 指向的路径
by running the following commands:通过运行以下命令:
import sys
print(sys.executable)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.