1

sudo私は許可を持っていない部門のコンピューターで python を使用しています。

やろうとしましimport shapely.geometryたが、インポート中にエラーが発生しました:

OSError: Could not find library geos_c or load any of its variants ['libgeos_c.so.1', 'libgeos_c.so']

geos次に、ライブラリをインストールしようとしました。私は次の手順でそうしました:

wget http://download.osgeo.org/geos/geos-3.4.2.tar.bz2
tar xjf geos-3.4.2.tar.bz2

cd nas/local/yangj/geos-3.4.2
./configure --prefix=/nax/local/yangj/geos-3.4.2  --enable-python && make clean && make
make install

ただし、その直後にいくつかのエラーが発生しました。

test -z "/nas/local/yangj/geos-3.4.2/include/geos/algorithm/locate" || /usr/bin/mkdir -p "/nas/local/yangj/geos-3.4.2/include/geos/algorithm/locate"/usr/bin/mkdir: cannot create directory ‘/nas/local’: Permission denied
make[7]: *** [install-geosHEADERS] Error 1
make[7]: Leaving directory `/local/yangj/geos-3.4.2/include/geos/algorithm/locate'
make[6]: *** [install-am] Error 2
make[6]: Leaving directory `/local/yangj/geos-3.4.2/include/geos/algorithm/locate'
make[5]: *** [install-recursive] Error 1
make[5]: Leaving directory `/local/yangj/geos-3.4.2/include/geos/algorithm/locate'
make[4]: *** [install-recursive] Error 1
make[4]: Leaving directory `/local/yangj/geos-3.4.2/include/geos/algorithm'
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory `/local/yangj/geos-3.4.2/include/geos'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/local/yangj/geos-3.4.2/include'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/local/yangj/geos-3.4.2'
make: *** [install] Error 2

この問題を解決するアイデアはありますか? また、このライブラリをインストールするときにパス変数を設定しなければならない気がしますが、パスの設定に非常に不慣れです。回答でパスの設定が必要な場合は、わかりやすく説明していただけますか?

4

0 に答える 0