值错误:导入熊猫并密谋时,PyPy的参数无效

时间:2019-06-30 15:49:23

标签: python windows pandas plotly pypy

将pandas和pyplot模块导入pypy时,出现以下错误。

Python 3.6.1 (784b254d6699, Apr 16 2019, 12:10:48)
[PyPy 7.1.1-beta0 with MSC v.1910 32 bit] on win32
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``rpython: syntax and semantics of
python, speed of c, restrictions of java and compiler error messages as
penetrable as MUMPS''
>>>> import pandas
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\pypy3.6-v7.1.1-win32\site-packages\pandas\__init__.py", line 13, in <
module>
    __import__(dependency)
  File "C:\pypy3.6-v7.1.1-win32\site-packages\pytz\__init__.py", line 20, in <mo
dule>
    from pytz.tzinfo import unpickler, BaseTzInfo
  File "C:\pypy3.6-v7.1.1-win32\site-packages\pytz\tzinfo.py", line 27, in <modu
le>
    _epoch = datetime.utcfromtimestamp(0)
  File "C:\pypy3.6-v7.1.1-win32\lib-python\3\datetime.py", line 1484, in utcfrom
timestamp
    return cls._fromtimestamp(t, True, None)
  File "C:\pypy3.6-v7.1.1-win32\lib-python\3\datetime.py", line 1459, in _fromti
mestamp
    y, m, d, hh, mm, ss = converter(t - max_fold_seconds)[:6]
ValueError: Invalid argument

>>>> import plotly
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\pypy3.6-v7.1.1-win32\site-packages\plotly\__init__.py", line 32, in <
module>
    from plotly import (
  File "C:\pypy3.6-v7.1.1-win32\site-packages\plotly\graph_objs\__init__.py", li
ne 3, in <module>
    from plotly.basedatatypes import BaseLayoutType as _BaseLayoutType
  File "C:\pypy3.6-v7.1.1-win32\site-packages\plotly\basedatatypes.py", line 12,
 in <module>
    from _plotly_utils.utils import _natural_sort_strings
  File "C:\pypy3.6-v7.1.1-win32\site-packages\_plotly_utils\utils.py", line 6, i
n <module>
    import pytz
  File "C:\pypy3.6-v7.1.1-win32\site-packages\pytz\__init__.py", line 20, in <mo
dule>
    from pytz.tzinfo import unpickler, BaseTzInfo
  File "C:\pypy3.6-v7.1.1-win32\site-packages\pytz\tzinfo.py", line 27, in <modu
le>
    _epoch = datetime.utcfromtimestamp(0)
  File "C:\pypy3.6-v7.1.1-win32\lib-python\3\datetime.py", line 1484, in utcfrom
timestamp
    return cls._fromtimestamp(t, True, None)
  File "C:\pypy3.6-v7.1.1-win32\lib-python\3\datetime.py", line 1459, in _fromti
mestamp
    y, m, d, hh, mm, ss = converter(t - max_fold_seconds)[:6]
ValueError: Invalid argument

使用pip可以很好地安装模块,而numpy则没有遇到相同的问题。我在pypy网站上知道它说它支持熊猫,那可能是什么问题?

编辑:另外,当我进入pypy-> help()->模块->列出了pandas,但是当我进入它时,它返回:

problem in pandas - ValueError: Invalid argument

编辑2:我尝试创建一个virtualenv,并且发生了完全相同的事情。脾气暴躁,其余的包抛出无效的参数错误...

1 个答案:

答案 0 :(得分:1)

该问题已在5月修复,但尚未随该修复程序一起发布新版本。您可以使用从nightly buildshttp://buildbot.pypy.org/nightly/py3.6/pypy-c-jit-96765-24757bd09ed9-win32.zip下载的最新有效(非0MB)窗口