![](/img/trans.png)
[英]I changed “python.exe” to “python3.exe” but now pip returns an error, how can i fix this?
[英]How can I change the real directory to Python.exe in Spyder and PTVS?
如果我在 IDLE 中查看路徑瀏覽器,它會指向我機器上的此處。
C:\Users\Excel\AppData\Local\Programs\Python\Python36-32\
下面的代碼在 IDLE import pandas_datareader as web df = web.DataReader('MSFT','google') df.head() 中工作正常
但是,在 Visual Studio 的 Spyder 和 Python 工具中,我收到以下錯誤。
ModuleNotFoundError: No module named 'pandas_datareader'
一定是Spyder和PTVS指向的引擎。 我不知道如何將這些軟件包重新指向正確的引擎。 我正在使用 Python 3.6。
你可以很容易地找出什么
Spyder 指向的路徑
通過運行以下命令:
import sys
print(sys.executable)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.