gpt4 book ai didi

python - 在 python 3.4.3 上安装 pandas 时,出现错误 - No module tempita

转载 作者:行者123 更新时间:2023-12-01 00:18:15 27 4
gpt4 key购买 nike

在 python 3.4.3 上安装 pandas 时,出现错误 - 没有名为 tempita 的模块。即使已经安装了 Tempita,我也会收到此错误。

1.) pip install pandas

2.) 发生以下错误 - 它显示 pip install tempita

3.)我做了pip install tempita,(已经安装),它说:

Requirement already satisfied: Tempita in ./.local/lib/python3.4/site-packages (0.5.2)

请帮我安装 pandas。我能够 pip 安装 numpy。我将其安装在 godaddy 网络托管上。

************Error Log for pip install pandas******************************
ERROR: Command errored out with exit status 1:
command: /home/happygivings/.local/bin/python3.4 /home/happygivings/.local/lib/python3.4/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp66tw0gn1
cwd: /tmp/pip-install-tlql2aud/pandas

Complete output (34 lines):
Traceback (most recent call last):
**File "setup.py", line 101, in <module>
from Cython import Tempita as tempita**
File "/tmp/pip-build-env-3kwrrpmv/overlay/lib/python3.4/site-packages/Cython/Tempita/__init__.py", line 4, in <module>
from ._tempita import *
ImportError: /tmp/pip-build-env-3kwrrpmv/overlay/lib/python3.4/site-packages/Cython/Tempita/_tempita.cpython-34m.so: failed to map segment from shared object: Operation not permitted

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "setup.py", line 103, in <module>
import tempita
**ImportError: No module named 'tempita'**

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/happygivings/.local/lib/python3.4/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
main()
File "/home/happygivings/.local/lib/python3.4/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/happygivings/.local/lib/python3.4/site-packages/pip/_vendor/pep517/_in_process.py", line 91, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-3kwrrpmv/overlay/lib/python3.4/site-packages/setuptools/build_meta.py", line 146, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "/tmp/pip-build-env-3kwrrpmv/overlay/lib/python3.4/site-packages/setuptools/build_meta.py", line 127, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-3kwrrpmv/overlay/lib/python3.4/site-packages/setuptools/build_meta.py", line 237, in run_setup
self).run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-3kwrrpmv/overlay/lib/python3.4/site-packages/setuptools/build_meta.py", line 142, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 105, in <module>
raise ImportError('Building pandas requires Tempita: '
ImportError: Building pandas requires Tempita: pip install Tempita


---------------------log of pip install pandas-------------------
ERROR: Command errored out with exit status 1: /home/happygivings/.local/bin/python3.4 /home/happygivings/.local/lib/python3.4/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp66tw0gn1 Check the logs for full command output.

最佳答案

Python 3.4 非常旧,要么更新它,要么安装旧版本的 pandas。我相信 v.0.19.2 合适

pip install pandas==0.19.2

关于python - 在 python 3.4.3 上安装 pandas 时,出现错误 - No module tempita,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59140150/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com