Error installing gvm-tools and python-gvm

I try to get the gym-tools and python-gym installed according to the documentation but I do get these errors:

pip install python-gvm

      Collecting python-gvm
      Could not find a version that satisfies the requirement python-gvm (from versions: )
      No matching distribution found for python-gvm

Even if I downloaded the source and tried a manual installation I do get an error:

"# pip install -e /root/python-gvm
Obtaining file:///root/python-gvm
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File “”, line 1, in
File “/root/python-gvm/setup.py”, line 23, in
from pathlib import Path
ImportError: No module named pathlib

----------------------------------------

Command “python setup.py egg_info” failed with error code 1 in /root/python-gvm/"

Does anybody have similar problems?

Thanks for your help!

You are trying to use gvm-tools and python-gvm with Python 2. Python 2 is NOT supported. Please use Python 3 instead.

1 Like

Thanks for your reply! Both python versions are installed:

root@localhost:~/python-gvm# python --version
Python 2.7.15rc1

root@localhost:~/python-gvm# python3 --version
Python 3.6.7

Still I have the same error.

And still you have to use Python 3 explicitly :wink: pathlib is only available with Python 3.

Just try pip3 instead of pip https://gvm-tools.readthedocs.io/en/latest/install.html

2 Likes

Yes, pip3 solved the problem! Many thanks!