From: Eric B. <er...@pi...> - 2015-06-23 13:39:12
|
Yes, this is the way I run cclib most often. You make a sandboxed virtual environment: virtualenv --system-site-packages /path/to/my/virtualenv With Python 2, it's called virtualenv, for Python 3, it's called pyvenv. I've added the --system-site-packages flag incase you want to use the system's version of NumPy or other packages. Otherwise, you'll have to reinstall them all. Then, you activate it, so all the software you install will go in there: source /path/to/my/virtualenv/bin/activate The other methods brought up here also work well. Eric On Mon, Jun 22, 2015 at 7:07 PM, Adam Tenderholt <ate...@gm...> wrote: > Hi Will, > > I think that virtualenv ( > http://docs.python-guide.org/en/latest/dev/virtualenvs/) may be of use to > you. If I recall correctly, once the virtual env is enabled/setup, any > packages are installed to a custom directory. This should let you bypass > the root access. > > Best regards, > > Adam > > > On Fri, Jun 19, 2015 at 11:34 AM, Will Kennerly < > the...@ya...> wrote: > >> I would like to use cclib on a (linux) computer that I do not have root >> access on. I can certainly unpack the source code archive and use "python >> setup.py build", and then "python setup.py install", the latter of which of >> course fails. >> >> Is there a particular path in the cclib subdirectory in my $HOME that I >> can add to $PYTHONPATH or use in sys.path.append() so that the cclib module >> can be imported as if it was installed by the normal method? >> >> Thank you, >> Will >> >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> cclib-users mailing list >> ccl...@li... >> https://lists.sourceforge.net/lists/listinfo/cclib-users >> >> > > > ------------------------------------------------------------------------------ > Monitor 25 network devices or servers for free with OpManager! > OpManager is web-based network management software that monitors > network devices and physical & virtual servers, alerts via email & sms > for fault. Monitor 25 devices for free with no restriction. Download now > http://ad.doubleclick.net/ddm/clk/292181274;119417398;o > _______________________________________________ > cclib-users mailing list > ccl...@li... > https://lists.sourceforge.net/lists/listinfo/cclib-users > > |