在anaconda3/envs/NBF/compiler_compat/ld fi中找不到losmsa

2024-10-03 02:39:21 发布

您现在位置:Python中文网/ 问答频道 /正文

在尝试运行“python”时设置.pydevelop'作为神经体拟合项目(https://github.com/mohomran/neural_body_fitting)的一部分,我在安装opendr时遇到了以下错误:

Installed /home/chandini/anaconda3/envs/NBF/lib/python2.7/site-packages/fasteners-0.14.1-py2.7.egg
Searching for opendr
Reading https://pypi.org/simple/opendr/
Downloading https://files.pythonhosted.org/packages/52/7e/937b09016c1b2c0f59629584429d3c63d2d50878464c5d3afd47444b7953/opendr-0.78.tar.gz#sha256=dce7efd7a0b25d3451c581303a01465ca82b15229f5272ae1d9573fe8927a6c2
Best match: opendr 0.78
Processing opendr-0.78.tar.gz
Writing /tmp/easy_install-cTiuVk/opendr-0.78/setup.cfg
Running opendr-0.78/setup.py -q bdist_egg --dist-dir /tmp/easy_install-cTiuVk/opendr-0.78/egg-dist-tmp-1Bp76J
Compiling opendr/contexts/ctx_mesa.pyx because it depends on /home/chandini/anaconda3/envs/NBF/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd.
[1/1] Cythonizing opendr/contexts/ctx_mesa.pyx
/home/chandini/anaconda3/envs/NBF/lib/python2.7/site-packages/Cython/Compiler/Main.py:367: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /tmp/easy_install-cTiuVk/opendr-0.78/opendr/contexts/ctx_mesa.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
warning: no files found matching '.' anywhere in distribution
warning: no files found matching 'nasa*' anywhere in distribution
no previously-included directories found matching 'contexts/OSMesa'
warning: no previously-included files matching '.' found anywhere in distribution
warning: no previously-included files matching 'rogrenderer*' found anywhere in distribution
In file included from /home/chandini/anaconda3/envs/NBF/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1821:0,
                 from /home/chandini/anaconda3/envs/NBF/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
                 from /home/chandini/anaconda3/envs/NBF/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from opendr/contexts/ctx_mesa.c:657:
/home/chandini/anaconda3/envs/NBF/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^~~~~~~
In file included from opendr/contexts/ctx_mesa.c:660:0:
opendr/contexts/OSMesa/include/GL/osmesa.h:258:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
 typedef void (*OSMESAproc)();
 ^~~~~~~
opendr/contexts/ctx_mesa.c: In function ‘__pyx_pf_6opendr_8contexts_8ctx_mesa_13OsContextBase_150ShaderSource’:
opendr/contexts/ctx_mesa.c:12785:49: warning: passing argument 3 of ‘glShaderSource’ from incompatible pointer type [-Wincompatible-pointer-types]
   glShaderSource(__pyx_v_shader, __pyx_v_count, (&__pyx_v_s), (&__pyx_v_len));
                                                 ^
In file included from opendr/contexts/OSMesa/include/GL/gl.h:2085:0,
                 from opendr/contexts/gl_includes.h:10,
                 from opendr/contexts/ctx_mesa.c:659:
opendr/contexts/OSMesa/include/GL/glext.h:5794:21: note: expected ‘const GLchar ** {aka const char **}’ but argument is of type ‘char **’
 GLAPI void APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar* *string, const GLint *length);
                     ^~~~~~~~~~~~~~
/home/chandini/anaconda3/envs/NBF/compiler_compat/ld: cannot find -lOSMesa
collect2: error: ld returned 1 exit status
error: Setup script exited with error: command 'gcc' failed with exit status 1

请提供一些线索。在

谢谢 钱迪尼


Tags: fromnumpyhomelibpackagesctxpyxwarning