在python 3.4.3上安装熊猫时,出现错误-没有名为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)
请帮助我安装熊猫。我可以点安装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.
答案 0 :(得分:2)
Python 3.4非常旧,可以对其进行更新或安装较早版本的pandas。我相信v.0.19.2很合适
pip install pandas==0.19.2