0

I have python2.7 and python 2.6 installed in my VM and I pip install some libraries such as:

sudo pip install gsconfig

The installation is successful and I can see that the package is installed by:

pip list

My default system's python is 2.6. In the terminal I enter python and try to import the library as:

python
import gsconfig

And then I get an error:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named gsconfig

I also tried with python2.7 as:

python2.7
import gsconfig

I get the same error message. I can not understand why this is happening as I don't have with other packages this issue (e.g. simplejson).

Can it be that the location of the package is different? When I try this:

which gsconfig

I get:

/usr/bin/which: no gsconfig in (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

EDITED Also when I go to the site-packages folder of python2.7 I can see that the package is installed.

1 Answer 1

1

It looks like the package name is not gsconfig, but is something else.

Looking at the documentation, I think it's geoserver.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.