gboeing / osmnx

OSMnx is a Python package to easily download, model, analyze, and visualize street networks and other geospatial features from OpenStreetMap.
https://osmnx.readthedocs.io
MIT License
4.87k stars 826 forks source link

Cannot be install on Ubuntu 16.04.6 LTS with pip3. #402

Closed catafest closed 4 years ago

catafest commented 4 years ago

This issue tracker is for reporting bugs or proposing new features. Please ask "how-to" questions on https://stackoverflow.com/ instead. Before you proceed, please read the contributing guidelines in this repo's CONTRIBUTING.md.

If you installed OSMnx via conda and are experiencing installation problems, please open an issue at https://github.com/conda-forge/osmnx-feedstock/issues

If you're having trouble with OSMnx, first search the previously opened issues (and Stack Overflow) to see if the problem has already been noted. If not, fill in the template below:

Problem description (what did you do, what did you expect to happen, and what actually happened)

What operating system, architecture, Python version, and OSMnx version are you using?

Complete list of your environment's packages and their versions (for example, run conda list or pip list then paste the output below, between the two "details" tags)

catalin@Strix:~$ sudo apt-get install libgeos-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libgeos-dev is already the newest version (3.5.0-1ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 40 not upgraded.

catalin@Strix:~$ pip3 install osmnx 
Defaulting to user installation because normal site-packages is not writeable
Collecting osmnx
  Using cached osmnx-0.11.4-py2.py3-none-any.whl (77 kB)
Requirement already satisfied: Shapely>=1.7 in ./.local/lib/python3.5/site-packages (from osmnx) (1.7.0)
ERROR: Could not find a version that satisfies the requirement matplotlib>=3.1 (from osmnx) (from versions: 0.86, 0.86.1, 0.86.2, 0.91.0, 0.91.1, 1.0.1, 1.1.0, 1.1.1, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1rc1, 1.4.1, 1.4.2, 1.4.3, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 2.0.0b1, 2.0.0b2, 2.0.0b3, 2.0.0b4, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1, 2.0.2, 2.1.0rc1, 2.1.0, 2.1.1, 2.1.2, 2.2.0rc1, 2.2.0, 2.2.2, 2.2.3, 2.2.4, 2.2.5, 3.0.0rc2, 3.0.0, 3.0.1, 3.0.2, 3.0.3)
ERROR: No matching distribution found for matplotlib>=3.1 (from osmnx)
catalin@Strix:~$ pip3 install osmnx --user
Collecting osmnx
  Using cached osmnx-0.11.4-py2.py3-none-any.whl (77 kB)
ERROR: Could not find a version that satisfies the requirement matplotlib>=3.1 (from osmnx) (from versions: 0.86, 0.86.1, 0.86.2, 0.91.0, 0.91.1, 1.0.1, 1.1.0, 1.1.1, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1rc1, 1.4.1, 1.4.2, 1.4.3, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 2.0.0b1, 2.0.0b2, 2.0.0b3, 2.0.0b4, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1, 2.0.2, 2.1.0rc1, 2.1.0, 2.1.1, 2.1.2, 2.2.0rc1, 2.2.0, 2.2.2, 2.2.3, 2.2.4, 2.2.5, 3.0.0rc2, 3.0.0, 3.0.1, 3.0.2, 3.0.3)
ERROR: No matching distribution found for matplotlib>=3.1 (from osmnx)

catalin@Strix:~$ pip3 list 
Package                       Version               
----------------------------- ----------------------
absl-py                       0.9.0                 
aiofiles                      0.4.0                 
apturl                        0.5.2                 
astor                         0.8.1                 
attrs                         19.3.0                
Automat                       0.8.0                 
bcrypt                        3.1.7                 
beautifulsoup4                4.8.1                 
blacksheep                    0.2.2                 
blinker                       1.4                   
Brlapi                        0.6.4                 
cachetools                    4.0.0                 
cchardet                      2.1.5                 
certifi                       2019.9.11             
cffi                          1.13.2                
characteristic                14.3.0                
chardet                       3.0.4                 
checkbox-support              0.39.0                
Click                         7.0                   
click-plugins                 1.1.1                 
cligj                         0.5.0                 
command-not-found             0.3                   
constantly                    15.1.0                
contextvars                   2.4                   
cryptography                  2.8                   
cycler                        0.9.0                 
decorator                     4.4.2                 
defer                         1.0.6                 
descartes                     1.1.0                 
Django                        2.2.7                 
essentials                    1.1.2                 
feedparser                    5.2.1                 
Fiona                         1.8.13.post1          
future                        0.18.2                
gast                          0.2.2                 
geopandas                     0.7.0                 
google-auth                   1.11.2                
google-auth-oauthlib          0.4.1                 
google-pasta                  0.1.8                 
grpcio                        1.27.2                
guacamole                     0.9.2                 
guardpost                     0.0.5                 
h11                           0.7.0                 
h2                            3.2.0                 
h5py                          2.10.0                
hpack                         3.0.0                 
hstspreload                   2020.2.25             
html5lib                      1.0.1                 
httplib2                      0.14.0                
httptools                     0.1.1                 
httpx                         0.11.1                
hyperframe                    5.2.0                 
hyperlink                     19.0.0                
idna                          2.8                   
immutables                    0.11                  
importlib-metadata            1.5.0                 
imutils                       0.5.3                 
incremental                   17.5.0                
ipython                       2.4.1                 
itsdangerous                  1.1.0                 
Jinja2                        2.10.3                
joblib                        0.14.1                
kazam                         1.4.5                 
Keras-Applications            1.0.8                 
Keras-Preprocessing           1.1.0                 
klein                         19.6.0                
language-selector             0.1                   
louis                         2.6.4                 
lxml                          4.4.1                 
Mako                          1.1.0                 
Markdown                      3.2.1                 
MarkupSafe                    1.1.1                 
matplotlib                    1.5.1                 
more-itertools                8.2.0                 
multidict                     4.7.4                 
munch                         2.5.0                 
netmiko                       2.4.2                 
networkx                      2.4                   
numpy                         1.17.3                
oauthlib                      3.1.0                 
onboard                       1.2.0                 
opencv-python                 4.2.0.32              
opt-einsum                    3.1.0                 
packaging                     19.2                  
padme                         1.1.1                 
pandas                        0.24.2                
paramiko                      2.6.0                 
pathlib2                      2.3.5                 
pexpect                       4.7.0                 
Pillow                        6.2.1                 
pip                           20.0.2                
pip-review                    1.0                   
plainbox                      0.38.0                
pluggy                        0.13.1                
protobuf                      3.11.3                
ptyprocess                    0.6.0                 
py                            1.8.1                 
pyasn1                        0.4.7                 
pyasn1-modules                0.2.8                 
pycparser                     2.19                  
pycrypto                      2.6.1                 
pycups                        1.9.73                
pycurl                        7.43.0.3              
pygal                         2.4.0                 
pygobject                     3.20.0                
PyHamcrest                    2.0.0                 
PyJWT                         1.7.1                 
PyMySQL                       0.9.3                 
PyNaCl                        1.3.0                 
PyOpenGL                      3.1.0                 
pyparsing                     2.4.4                 
pyprof2calltree               1.4.4                 
pyproj                        2.5.0                 
PyQt5                         5.14.1                
PyQt5-sip                     12.7.0                
PyQtChart                     5.14.0                
PyQtWebEngine                 5.13.2                
pyserial                      3.4                   
pytest                        5.3.5                 
python-apt                    1.1.0b1+ubuntu0.16.4.8
python-dateutil               2.8.1                 
python-debian                 0.1.36                
python-systemd                231                   
pytz                          2019.3                
pyxdg                         0.26                  
Quart                         0.5.0                 
reportlab                     3.5.32                
requests                      2.22.0                
requests-oauthlib             1.3.0                 
requests-unixsocket           0.2.0                 
rfc3986                       1.3.2                 
robotframework                3.1.2                 
rodi                          1.0.8                 
rsa                           4.0                   
scikit-learn                  0.22.2.post1          
scipy                         1.4.1                 
scp                           0.13.2                
sessioninstaller              0.0.0                 
setuptools                    41.6.0                
Shapely                       1.7.0                 
simplegeneric                 0.8.1                 
six                           1.13.0                
sklearn                       0.0                   
sniffio                       1.1.0                 
sortedcontainers              2.1.0                 
soupsieve                     1.9.5                 
sqlparse                      0.3.0                 
starlette                     0.10.2                
system-service                0.3                   
tensorboard                   2.1.0                 
tensorflow-estimator          2.1.0                 
termcolor                     1.1.0                 
textfsm                       1.1.0                 
tflite-runtime                2.1.0.post1           
Tubes                         0.2.0                 
Twisted                       19.10.0               
typing                        3.7.4.1               
ubuntu-drivers-common         0.0.0                 
ufw                           0.35                  
unattended-upgrades           0.1                   
unity-scope-calculator        0.1                   
unity-scope-chromiumbookmarks 0.1                   
unity-scope-colourlovers      0.1                   
unity-scope-devhelp           0.1                   
unity-scope-firefoxbookmarks  0.1                   
unity-scope-gdrive            0.7                   
unity-scope-manpages          0.1                   
unity-scope-openclipart       0.1                   
unity-scope-texdoc            0.1                   
unity-scope-tomboy            0.1                   
unity-scope-virtualbox        0.1                   
unity-scope-yelp              0.1                   
unity-scope-zotero            0.1                   
unsync                        1.2.1                 
urllib3                       1.25.6                
usb-creator                   0.3.0                 
uvloop                        0.14.0                
virtualenv                    16.7.7                
wcwidth                       0.1.8                 
webencodings                  0.5.1                 
Werkzeug                      1.0.0                 
wheel                         0.29.0                
wrapt                         1.12.0                
wsproto                       0.14.1                
xdiagnose                     3.8.4.1               
xkit                          0.0.0                 
XlsxWriter                    1.2.2                 
zipp                          1.2.0                 
zope.interface                4.7.1  
# Paste the output of your Python packages and their versions here, between these two "details" tags

Code snippet that independently and completely reproduces the issue

# your code goes here
gboeing commented 4 years ago

Per the installation instructions, if you want to use pip to install OSMnx, then you should make sure ALL of its dependencies (including matplotlib) are installed on your system first. conda is the recommended install method as several of OSMnx's dependencies entail nontrivial manual installations.