Python 无法使用pip安装SND文件
我需要安装sndfile。我在一个Jupyter笔记本上,IBM Watson studio上的Python解释器 我已经用Python 无法使用pip安装SND文件,python,c++,jupyter-notebook,data-science-experience,Python,C++,Jupyter Notebook,Data Science Experience,我需要安装sndfile。我在一个Jupyter笔记本上,IBM Watson studio上的Python解释器 我已经用安装了库libsndfile!conda安装-c conda forge libsndfile 当我调用pip install sndfile时,我得到了as错误: ... gcc -pthread -shared -B /home/spark/conda/envs/python3.6/compiler_compat -L/home/spark/conda/envs/pyt
安装了库libsndfile
!conda安装-c conda forge libsndfile
当我调用pip install sndfile
时,我得到了as错误:
...
gcc -pthread -shared -B /home/spark/conda/envs/python3.6/compiler_compat -L/home/spark/conda/envs/python3.6/lib -Wl,-rpath=/home/spark/conda/envs/python3.6/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6/sndfile._sndfile.o -lsndfile -o build/lib.linux-x86_64-3.6/sndfile/_sndfile.abi3.so
/home/spark/conda/envs/python3.6/compiler_compat/ld: cannot find -lsndfile
...
但是如果我检查库的文件夹/home/spark/conda/envs/python3.6/lib
,实际上它就在那里:
!ls /home/spark/conda/envs/python3.6/lib/libsnd*
/home/spark/conda/envs/python3.6/lib/libsndfile.a
/home/spark/conda/envs/python3.6/lib/libsndfile.so
/home/spark/conda/envs/python3.6/lib/libsndfile.so.1
/home/spark/conda/envs/python3.6/lib/libsndfile.so.1.0.28
我缺少什么?该错误消息
找不到-lsndfile
听起来好像链接器正在查找名为-lsndfile
的文件,而不是库libsndfile.o
。我怀疑命令行选项被误解。该错误消息找不到-lsndfile
听起来好像链接器正在查找名为-lsndfile
的文件,而不是库libsndfile.o
。我怀疑命令行选项被误解了。