简体   繁体   中英

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.

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()

However, in Spyder and Python Tools for Visual Studio I get the following error.

ModuleNotFoundError: No module named 'pandas_datareader'

It must be the engine that Spyder and PTVS are pointing to. I can't figure out how to re-point these software packages to the right engine. I am using Python 3.6.

You can easily find out what the

path that Spyder is pointing to

by running the following commands:

import sys
print(sys.executable)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM