找不到树莓派pip安装psychopy HDF5

时间:2020-05-18 09:33:24

标签: python raspberry-pi raspberry-pi3 ubuntu-18.04 psychopy

我正在尝试使用Ubuntu MATE 18.04.04在Raspberry Pi3b +上安装psychopy。这是我在安装pytables时遇到的错误。

我正在使用的命令:sudo python3 -m pip install psychopy

    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-311swvsm/tables/setup.py'"'"'; __file__='"'"'/tmp/pip-install-311swvsm/tables/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-o9pwm6qh
         cwd: /tmp/pip-install-311swvsm/tables/
    Complete output (15 lines):
    /tmp/H5close7m2miv9g.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
     main (int argc, char **argv) {
     ^~~~
    /tmp/H5close7m2miv9g.c: In function ‘main’:
    /tmp/H5close7m2miv9g.c:2:5: warning: implicit declaration of function ‘H5close’ [-Wimplicit-function-declaration]
         H5close();
         ^~~~~~~
    /usr/bin/ld: cannot find -lhdf5
    collect2: error: ld returned 1 exit status
    * Using Python 3.6.9 (default, Apr 18 2020, 01:56:04)
    * USE_PKGCONFIG: False
    .. ERROR:: Could not find a local HDF5 installation.
       You may need to explicitly state where your local HDF5 headers and
       library can be found by setting the ``HDF5_DIR`` environment
       variable or by using the ``--hdf5`` command-line option.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
lsp@lsp-raspi:~$ 

我是个初学者,您能帮我找出问题所在吗? 提前致谢。

几个问题:

使用sudo安装psychopy时

WARNING: The directory '/home/lsp/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag

但是安装仍在进行,将来会出现问题吗?

我对控制安装位置不太满意,我正在尝试使用python3命令控制库的版本,是否足以将库安装在各个位置?

0 个答案:

没有答案