Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/347.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何让boost.python教程示例与Python3链接:Raspberry Pi3/boost 1.72(linux)_Python_C++_Linux_Boost - Fatal编程技术网

如何让boost.python教程示例与Python3链接:Raspberry Pi3/boost 1.72(linux)

如何让boost.python教程示例与Python3链接:Raspberry Pi3/boost 1.72(linux),python,c++,linux,boost,Python,C++,Linux,Boost,我是个新手。我试图让boost.python运行,但没有成功 当我在/home/pi/Desktop/boost_1_72_0/libs/python/example/quickstart中输入b2时,我得到以下消息: ...found 15 targets... ...updating 1 target... gcc.link embedding /usr/bin/ld: cannot find -lpython3.5 collect2: error: ld returned 1 exit s

我是个新手。我试图让boost.python运行,但没有成功

当我在/home/pi/Desktop/boost_1_72_0/libs/python/example/quickstart中输入b2时,我得到以下消息:

...found 15 targets...
...updating 1 target...
gcc.link embedding
/usr/bin/ld: cannot find -lpython3.5
collect2: error: ld returned 1 exit status
    "g++" -L"/usr/lib" -Wl,-rpath -Wl,"/usr/lib"  -o "embedding" -Wl,--start-group "embedding.o"  -Wl,-Bstatic  -Wl,-Bdynamic -lboost_python -ldl -lpthread -lutil -lpython3.5 -Wl,--end-group -fPIC -g 
...failed gcc.link embedding...
...failed updating 1 target...
user-confi.jam文件包含以下行:

using python : 3.5 : /usr/bin/python3.5 : /usr/include/python3.5 : /usr/lib ;
现有: /usr/bin/python3.5(文件) /usr/include/python3.5(目录)

但是,没有像/usr/bin/ld这样的目录

我做错了什么

非常感谢您的支持