Generally: what you install as root, should be installed in a public
readable directory, not in root's home directory "/root". As normal
user you can install there, where you are allowed.
The directory you select by the option "-E directory".
For the first time can be used the option "-d" (allegedly) but I
initalize virtual environment classically by the command
virtualenv /directory/...
You can install it once more as normal user or as root in other
directory readable by all and only writable by him.
pip install -E /home/me/myvirtualenv ...usual..paramerers
Before you use it, you initialize environmet variables by
source /home/me/myvirtualenv/bin/activate
It is fortune that pip before upgrade installs on some computers to /
usr/lib/python... by default.
The path to package you can determine by
$ python
>>> import packagename
>>> packagename
<module 'satchmo_store' from '/home/myname/lib/python2.5/.../
satchmo/apps/satchmo_store/__init__.pyc'>
I am a beginner when it comes to pip / virtualenv. That's all.
On Mar 15, 3:28 pm, Nader Emami <[email protected]> wrote:
> Thank for your quick answer!
>
> I have "gentoo" and I have followed the instructions of document. I have
> used "pip" and not the other ones!
>
> -Cheers
> Nader
>
> On 15 March 2011 15:17, Chris Moffitt <[email protected]> wrote:
>
>
>
> > When you installed everything as root, how did you install? Did you use
> > virtualenv and pip or symlinks or some other method?
>
> > Also, which OS is this (debian/ubuntu/etc)?
>
> > -Chris
>
> > On Tue, Mar 15, 2011 at 8:48 AM, Nader <[email protected]> wrote:
>
> >> Hello,
>
> >> After installing dependencies (I have done these as root), I have
> >> installed "Satchmo" wel on my system. I go to python to check whether
> >> the installation has been well done!
> >> As a "root" I do :
>
> >> python
> >> Python 2.6.6 (r266:84292, Mar 10 2011, 21:50:13)
> >> [GCC 4.4.4] on linux2
> >> Type "help", "copyright", "credits" or "license" for more information.
> >> >>> import django
> >> >>> import satchmo_store
> >> satchmo_store.get_version()
> >> '0.9.2-pre hg-2150:ac0a8442e656'
>
> >> So it is ok! but I try as a normal user of system, I get the next
> >> error:
>
> >> python
> >> Python 2.6.6 (r266:84292, Mar 10 2011, 21:50:13)
> >> [GCC 4.4.4] on linux2
> >> Type "help", "copyright", "credits" or "license" for more information.
> >> >>> import django
> >> import satchmo_store
> >> Traceback (most recent call last):
> >> File "<stdin>", line 1, in <module>
> >> ImportError: No module named satchmo_store
>
> >> I don't know what the problem in this case is! Would somebody help me
> >> to solve this?
>
> >> With regards,
> >> Nader
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Satchmo users" group.
> >> To post to this group, send email to [email protected].
> >> To unsubscribe from this group, send email to
> >> [email protected].
> >> For more options, visit this group at
> >>http://groups.google.com/group/satchmo-users?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Satchmo users" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> >http://groups.google.com/group/satchmo-users?hl=en.
>
> --
> Nader
--
You received this message because you are subscribed to the Google Groups
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/satchmo-users?hl=en.