【问题标题】:Pypy Pandas not installingPypy Pandas 没有安装
【发布时间】:2021-07-23 23:34:31
【问题描述】:

我是 Pypy 的新手,我已经使用 python 工作了几年,我决定尝试一下 pypy!但是我在安装 pandas 库时遇到了问题。我无法发布错误的完整长度,因为 StackOverflow 不会让我……但这是一个抑制版本……

我跑了:

pypy3 -m pip install pandas

结果是:

Using cached pandas-1.2.4.tar.gz (5.5 MB)
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
 command: 'C:\Program Files (x86)\pypy3.7\pypy3.exe' 'C:\Program Files (x86)\pypy3.7\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\GONALO~1\AppData\Local\Temp\pip-build-env-f_kp3snm\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'Cython>=0.29.21,<3' 'numpy==1.16.5; python_version=='"'"'3.7'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.16.5; python_version=='"'"'3.7'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy; python_version>='"'"'3.9'"'"''
     cwd: None
Complete output (269 lines):
Ignoring numpy: markers 'python_version == "3.8" and platform_system != "AIX"' don't match your environment
Ignoring numpy: markers 'python_version == "3.7" and platform_system == "AIX"' don't match your environment
Ignoring numpy: markers 'python_version == "3.8" and platform_system == "AIX"' don't match your environment
Ignoring numpy: markers 'python_version >= "3.9"' don't match your environment
Collecting setuptools
  Using cached setuptools-56.0.0-py3-none-any.whl (784 kB)
Collecting wheel
  Using cached wheel-0.36.2-py2.py3-none-any.whl (35 kB)
Collecting Cython<3,>=0.29.21
  Using cached Cython-0.29.23-py2.py3-none-any.whl (978 kB)
Collecting numpy==1.16.5
  Using cached numpy-1.16.5.zip (5.1 MB)
Using legacy setup.py install for numpy, since package 'wheel' is not installed.
Installing collected packages: setuptools, wheel, Cython, numpy
    Running setup.py install for numpy: started
    Running setup.py install for numpy: finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: 'C:\Program Files (x86)\pypy3.7\pypy3.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\GONALO~1\\AppData\\Local\\Temp\\pip-install-f70s2rin\\numpy\\setup.py'"'"'; __file__='"'"'C:\\Users\\GONALO~1\\AppData\\Local\\Temp\\pip-install-f70s2rin\\numpy\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\GONALO~1\AppData\Local\Temp\pip-record-bkj0w_a2\install-record.txt' --single-version-externally-managed --prefix 'C:\Users\GONALO~1\AppData\Local\Temp\pip-build-env-f_kp3snm\overlay' --compile --install-headers 'C:\Users\GONALO~1\AppData\Local\Temp\pip-build-env-f_kp3snm\overlay\include\numpy'
         cwd: C:\Users\GONALO~1\AppData\Local\Temp\pip-install-f70s2rin\numpy\
     UserWarning:
        Atlas (http://math-atlas.sourceforge.net/) libraries not found.
        Directories to search for the libraries can be specified in the
        numpy/distutils/site.cfg file (section [atlas]) or by setting
        the ATLAS environment variable.
      self.calc_info()
    blas_info:
    No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
    customize MSVCCompiler
      libraries blas not found in ['C:\\', 'C:\\Program Files (x86)\\pypy3.7\\libs']
      NOT AVAILABLE
(..............................)

    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Program Files (x86)\pypy3.7\pypy3.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\GONALO~1\\AppData\\Local\\Temp\\pip-install-f70s2rin\\numpy\\setup.py'"'"'; __file__='"'"'C:\\Users\\GONALO~1\\AppData\\Local\\Temp\\pip-install-f70s2rin\\numpy\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\GONALO~1\AppData\Local\Temp\pip-record-bkj0w_a2\install-record.txt' --single-version-externally-managed --prefix 'C:\Users\GONALO~1\AppData\Local\Temp\pip-build-env-f_kp3snm\overlay' --compile --install-headers 'C:\Users\GONALO~1\AppData\Local\Temp\pip-build-env-f_kp3snm\overlay\include\numpy' Check the logs for full command output.
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Program Files (x86)\pypy3.7\pypy3.exe' 'C:\Program Files (x86)\pypy3.7\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\GONALO~1\AppData\Local\Temp\pip-build-env-f_kp3snm\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'Cython>=0.29.21,<3' 'numpy==1.16.5; python_version=='"'"'3.7'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.16.5; python_version=='"'"'3.7'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy; python_version>='"'"'3.9'"'"'' Check the logs for full command output.

有人可以帮忙吗?我不知道我做错了什么......非常感谢大家的关注和帮助!

【问题讨论】:

  • 你可以通过轮子试一试。即首先安装wheel pip install wheel 然后运行你的命令来安装pandas。
  • @simpleApp 这对我不起作用,使用 pypy3 V7.3.7 (python 3.8.12)

标签: python pandas pip pypy


【解决方案1】:

请使用 pypy 的 conda 发行版,因为大多数包将在没有编译的情况下提供。 Source

【讨论】:

  • 即使使用 conda pypy3,pandas 也无法安装。 pypy3 V7.3.7 (python 3.8.12)
  • conda 尚未发布 pypy3.8 的软件包。 pypy3.7 应该可以工作。
  • 用3.7试过,没用,我可以用默认方法得到pypy3.8,当你说它没有发布时,你能指出任何来源吗?我可以用 conda create -n my_env -c conda-forge pypy3.8 得到它。你也试过3.7吗?这暂时对我有用,但不安装熊猫!
  • conda install -c conda-forge pandas
  • 抱歉,按“返回”太快了。在 Windows 上设置 conda pypy3.7 环境并执行“conda install -c conda-forge pandas”让我得到 pandas-1.3.4。它对你来说失败了吗?怎么样?
猜你喜欢
  • 2019-09-16
  • 1970-01-01
  • 2017-01-22
  • 2018-07-12
  • 2017-07-09
  • 2016-06-02
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多