所有
我在安装了Anaconda 2.3.0 64b(2.7)的Windows 2012服务器上运行,并尝试使用Python 3.6。我已经安装了3.6但是无法加载pandas。我看到另一个线程似乎将问题与conda联系起来。
我再次删除并安装了pandas并重置了我的路径,看不到Anaconda目录,但我仍然收到错误。
任何建议都将不胜感激。
PS C:\Users\yearickp\AppData\Local\Programs\Python\Python36> .\python -m pip list
Package Version
--------------- -------
numpy 1.14.3
pandas 0.23.0
pip 10.0.1
pyodbc 4.0.23
python-dateutil 2.7.3
pytz 2018.4
setuptools 39.1.0
six 1.11.0
SQLAlchemy 1.2.7
PS C:\Users\yearickp\AppData\Local\Programs\Python\Python36> .\python
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas as pd
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\yearickp\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\__init__.py", line 42, in <mod
ule>
from pandas.core.api import *
File "C:\Users\yearickp\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\core\api.py", line 10, in <mod
ule>
from pandas.core.groupby.groupby import Grouper
File "C:\Users\yearickp\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\core\groupby\__init__.py", lin
e 2, in <module>
from pandas.core.groupby.groupby import (
File "C:\Users\yearickp\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\core\groupby\groupby.py", line
49, in <module>
from pandas.core.frame import DataFrame
File "C:\Users\yearickp\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\core\frame.py", line 74, in <m
odule>
from pandas.core.series import Series
File "C:\Users\yearickp\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\core\series.py", line 3978, in
<module>
Series._add_series_or_dataframe_operations()
File "C:\Users\yearickp\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\core\generic.py", line 8891, i
n _add_series_or_dataframe_operations
from pandas.core import window as rwindow
File "C:\Users\yearickp\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\core\window.py", line 36, in <
module>
import pandas._libs.window as _window
ImportError: DLL load failed: The specified module could not be found.
>>>
答案 0 :(得分:0)
这似乎与v0.23有关。卸载pandas pip uninstall pandas
并安装v0.22而不是pip install pandas==0.22
(除非你真的必须使用v0.23)。