python包compile build_ext in linux from other directory(seqlearn包)

2024-09-24 00:31:07 发布

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

我下载了seqlearn python包(在https://github.com/larsmans/seqlearn)。我想在不安装的情况下使用seqlearn的源目录,所以我尝试先在linux上编译。你知道吗

文件位于/home/user/Downloads/seqlearn-master/seqlearn-master/ 我能跑 python setup.py build_ext --inplace完美 在/home/user/Downloads/seqlearn-master/seqlearn-master/目录中。你知道吗

但是,我想在我的主目录中启动python笔记本,所以我尝试在我的主目录中python /home/user/Downloads/seqlearn-master/seqlearn-master/setup.py build_ext --inplace,但是它显示

ValueError: 'seqlearn/_decode/bestfirst.pyx' doesn't match any files

所以我不能从我的主目录编译,有人知道如何解决这个问题吗?你知道吗


Tags: pyhttpsbuildgithubmastercomhomedownloads
1条回答
网友
1楼 · 发布于 2024-09-24 00:31:07

您可以使用此代码查看选项:

python setup_telnet.py  help build_ext

并使用buildlib选项设置其他目录。你知道吗

python setup.py  build_ext  build-lib <other directory>

相关问题 更多 >