Tristramg / osm4routing

Parse OpenStreetMap data for routing
GNU General Public License v3.0
109 stars 32 forks source link

Setup: ImportError: No module named setuptools #21

Open giswhiz opened 4 years ago

giswhiz commented 4 years ago

I am trying to install following the steps described here:
https://github.com/Tristramg/osm4routing

After unzipping files folder to Home in Ubuntu, I get the following issue:

sudo python setup.py install

Traceback (most recent call last): File "setup.py", line 6, in from setuptools import setup, find_packages, Extension ImportError: No module named setuptools

I also tried it with virtualenv, but it says:

ImportError: No module named _weakrefset ERROR: The executable env/bin/python is not functioning ERROR: It thinks sys.prefix is '/home/...../osm4routing-master' (should be '/home/...../osm4routing-master/env') ERROR: virtualenv is not compatible with this system or executable

What could be the solution?