我下载了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 notebook,所以我在我的主目录中尝试了python /home/user/Downloads/seqlearn-master/seqlearn-master/setup.py build_ext --inplace
,但它显示了
ValueError: 'seqlearn/_decode/bestfirst.pyx' doesn't match any files
所以我无法从我的主目录编译,任何人都知道如何解决这个问题?
答案 0 :(得分:0)
您可以使用此代码查看选项:
python setup_telnet.py --help build_ext
并使用--build-lib选项设置其他目录。
python setup.py build_ext --build-lib <other directory>