Closed baylejs closed 2 years ago
@baylejs, unfortunately, most packages on conda-forge don't support python 2.7 anymore, including shapely and many of its dependencies. python 2.7 reached its end of life nearly 2 years ago (see https://www.python.org/dev/peps/pep-0373 and https://conda-forge.org/docs/user/announcements.html) so it has become impossible to simultaneously update to the latest versions of dependencies and keep versions that work with python 2.7.
I'm afraid conda-forge won't be a solution for you if you are still working with python 2.7.
Issue:
Get this error when installed via Anaconda Navigator. Shapely OSError: Could not find lib c or load any of its variants []
Then tried to update to 1.7.1 but Conda repository says it's dependent on Python 3, while Pypi.org shows it is compatible with Python 2.7.
Fixed both issues by using pip install Shapely==1.7.1
kenodegard commented I can replicate this behavior with both the defaults and conda-forge channels, unfortunately this is not a conda issue but rather a problem with how the package itself is defined/built.
Please reopen this issue at ContinuumIO/anaconda-issues and/or conda-forge/shapely-feedstock.
Thanks!
Environment (
conda list
):packages in environment at /opt/anaconda3/envs/python2:
#
Name Version Build Channel
backports 1.0 py_2 conda-forge backports.functools_lru_cache 1.6.1 py_0 conda-forge backports.lzma 0.0.14 py27ha1d0bda_1 conda-forge backports_abc 0.5 py_1 conda-forge basemap 1.2.1 py27hd2746df_2 conda-forge basemap-data-hires 1.2.2 0 conda-forge ca-certificates 2021.10.8 h033912b_0 conda-forge certifi 2019.11.28 py27h8c360ce_1 conda-forge cycler 0.10.0 py_2 conda-forge expat 2.4.1 he49afe7_0 conda-forge freetype 2.10.4 h4cff582_1 conda-forge functools32 3.2.3.2 py_3 conda-forge future 0.18.2 py27h8c360ce_1 conda-forge futures 3.3.0 py27h8c360ce_1 conda-forge geos 3.8.0 h4a8c4bd_1 conda-forge gettext 0.19.8.1 h7937167_1005 conda-forge jbig 2.1 h0d85af4_2003 conda-forge jpeg 9d hbcb3906_0 conda-forge kiwisolver 1.1.0 py27h5cd23e5_1 conda-forge lasio 0.27 pypi_0 pypi lerc 3.0 he49afe7_0 conda-forge libblas 3.9.0 8_openblas conda-forge libcblas 3.9.0 8_openblas conda-forge libcxx 12.0.1 habf9029_0 conda-forge libdeflate 1.8 h0d85af4_0 conda-forge libffi 3.3 h046ec9c_2 conda-forge libgfortran 4.0.0 7_5_0_h1a10cd1_23 conda-forge libgfortran4 7.5.0 h1a10cd1_23 conda-forge libiconv 1.16 haf1e3a3_0 conda-forge liblapack 3.9.0 8_openblas conda-forge libopenblas 0.3.12 openmp_h63d9170_1 conda-forge libpng 1.6.37 h7cec526_2 conda-forge libtiff 4.3.0 hd146c10_2 conda-forge libwebp-base 1.2.1 h0d85af4_0 conda-forge libzlib 1.2.11 h9173be1_1013 conda-forge llvm-openmp 12.0.1 hda6cdc1_1 conda-forge lz4-c 1.9.3 he49afe7_1 conda-forge matplotlib 2.2.5 h694c41f_3 conda-forge matplotlib-base 2.2.5 py27h11da6c2_1 conda-forge ncurses 6.2 h2e338ed_4 conda-forge numpy 1.16.5 py27hde6bac1_0 conda-forge olefile 0.46 pyh9f0ad1d_1 conda-forge openssl 3.0.0 h0d85af4_2 conda-forge pandas 0.24.2 py27h86efe34_0 conda-forge patsy 0.5.1 py_0 conda-forge pillow 6.2.1 py27h43b43f3_1 conda-forge pip 20.1.1 pyh9f0ad1d_0 conda-forge proj4 5.2.0 h6de7cb9_1006 conda-forge pyparsing 2.4.7 pyh9f0ad1d_0 conda-forge pyproj 1.9.6 py27h0b31af3_1002 conda-forge pyshp 2.1.3 pyh44b312d_0 conda-forge python 2.7.18 h47d645e_1 defaults python-dateutil 2.8.1 py_0 conda-forge python.app 1.3 py27h89ed719_1 conda-forge python_abi 2.7 1_cp27m conda-forge pytz 2020.1 pyh9f0ad1d_0 conda-forge readline 8.1 h05e3726_0 conda-forge scikit-learn 0.20.3 py27hca23c92_1 conda-forge scipy 1.2.1 py27h7e0e109_2 conda-forge seaborn 0.9.0 py27_0 defaults setuptools 44.0.0 py27_0 conda-forge shapely 1.7.1 pypi_0 pypi singledispatch 3.6.1 pyh44b312d_0 conda-forge six 1.16.0 pyh6c4a22f_0 conda-forge sqlite 3.37.0 h23a322b_0 conda-forge statsmodels 0.10.2 py27h3b54f70_0 conda-forge subprocess32 3.5.4 py27h0b31af3_0 conda-forge tk 8.6.11 h5dbffcc_1 conda-forge tornado 5.1.1 py27h1de35cc_1000 conda-forge wheel 0.37.0 pyhd8ed1ab_1 conda-forge wxpython 4.0.4 py27hebc47a7_0 defaults xz 5.2.5 haf1e3a3_1 conda-forge zlib 1.2.11 h9173be1_1013 conda-forge zstd 1.5.0 h582d3a0_0 conda-forge
Details about
conda
and system (conda info
):==> /Users/jeff/.condarc <== channels: