简体   繁体   中英

How do I make pandas installed via Anaconda usable by PyCharm?

I'm on Windows 10 and have installed Anaconda3 (2016-1). When I use Spyder that Anaconda installed, import pandas works.

From PyCharm I however can't import pandas . PyCharm is set to use C:\\Users\\Chris>C:\\Users\\Chris\\Anaconda3\\envs\\Conda\\python.exe .

If I call the exe directly I also can't import pandas despite it being in the Anaconda3 dictionary.

C:\Users\Chris>C:\Users\Chris\Anaconda3\envs\Conda\python.exe
Python 3.5.1 |Continuum Analytics, Inc.| (default, Feb 16 2016, 09:49:46) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'pandas'

What do I have to do, that I can import pandas ?

当我将路径设置为C:\\Users\\Chris>C:\\Users\\Chris\\Anaconda3\\python.exe而不是使用C:\\Users\\Chris>C:\\Users\\Chris\\Anaconda3\\envs\\Conda\\python.exe PyCharm建议使用C:\\Users\\Chris>C:\\Users\\Chris\\Anaconda3\\envs\\Conda\\python.exe

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