[英]python, libsvn and cant file python imports
I have installed libsvm-3.12 and placed into: 我已经安装了libsvm-3.12并放入:
In my pythonpath I have the following: 在我的pythonpath中,我有以下内容:
echo $PYTHONPATH
/home/ubuntu/libsvm-3.12/python:/home/ubuntu/libsvm-3.12:$PYTHONPATH
This is in both .bashrc in home and in /etc/enviroments 这是在家庭和/ etc / enviroments中的.bashrc中
I rebooted the machine. 我重启了机器。
From python I get: 从python我得到:
>>> import svmulti
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named svmulti
How do I let python know where the lib is? 如何让python知道lib在哪里?
Given installation via make
in .../libsvm-3.12/python,
I think you also want: 通过
.../libsvm-3.12/python,
make
安装.../libsvm-3.12/python,
我想您还想要:
>>> import svmutil
not: 不:
>>> import svmulti
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.