[Pywps-dev] PyWPS Installation

Jan Rudolf rudolja1 at fit.cvut.cz
Wed Jun 8 02:22:56 PDT 2016


Hi Vikas, 

> So When I am inside the virtualenv and install the dependencies they
> get installed locally (inside virtualenv and not globally) but when I
> do 'sudo pip setup.py install' this installs pywps globally hence when
> I try to run demo.py from inside the virtualenv it gives an import
> error that It can't import pywps.

Did you have Virtualenv activated? Then should the "python" command call
the Python interpreter of your Virtualenv, so then if you use "python
setup.py install", it should install PyWPS into Virtualenv's Python.
It's  work for me. Hope it help.

Jan 


On 2016-06-08 09:41, Vikas Mishra wrote:
> Hi,
> I finally figured out the reason why I was getting import error when I
> was trying to install from the source code locally.
> I've recently started using virtualenv, and for installation am
> following the instructions from
> https://pywps.readthedocs.io/en/latest/install.html
> 
> So When I am inside the virtualenv and install the dependencies they
> get installed locally (inside virtualenv and not globally) but when I
> do 'sudo pip setup.py install' this installs pywps globally hence when
> I try to run demo.py from inside the virtualenv it gives an import
> error that It can't import pywps.
> 
> For the moment I have installed everything globally and it works but
> is there a way to install everything in virtualenv? I tried installing
> pywps in virtualenv (without sudo) but it gives some permission denied
> error.
> 
> Also 'psutil' is not installed when you install from the requirements
> files and before running demo.py I had to manually install it.
> 
> Thanks and regards,
> 
> Vikas Mishra
> MSc(Hons) Economics + B.E. Electronics and Electrical Engineering
> BIRLA INSTITUTE OF TECHNOLOGY & SCIENCE, Pilani
> KK Birla Goa Campus
> 8412898899|vikasmishra95 at gmail.com
> 
> Sent with MailTrack [1] 
> 
> Links:
> ------
> [1]
> https://mailtrack.io/install?source=signature&lang=en&referral=vikasmishra95@gmail.com&idSignature=22
> _______________________________________________
> pywps-dev mailing list
> pywps-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pywps-dev


More information about the pywps-dev mailing list