在我的 Ubutntu 机器上,我有 python 2.7 和 3.5。我已经按照这里的说明安装了 pysvn
sudo apt-get install python-svn
sudo apt-get install svn-workbench
Python 2.7 看到了它,但不是 3.5:
Python 3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pysvn
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'pysvn'
>>>