Hi, I’ve just done the advanced tutorial, but I can’t find where the polls package installs to, I expected it to be in site-packages in my virtual environment, but can’t see it in there. Where does the polls now run from now it’s installed?
It should be in your site-packages. When you start a python shell while your venv is active, can you import polls?
I recently had a problem where I thought I was installing into my venv but instead I was installing globally. While the venv was active, I used pip3.8 instead of pip. The venv only overrides pip, but not pip3.8.
Actually, I think it’s something else. Did you use the command from the tutorial?
python -m pip install --user django-polls/dist/django-polls-0.1.tar.gz
If you did: the --user argument will make sure that the package is installed globally for your user. As far as I know, the per user installation makes no sense within a venv. Try running the command without --user and you should be able to install into the venv.
Thanks for your reply, yes, I used the command from the tutorial. I did some more digging and found out it installed to:
.local/lib/python3.8/site-packages
I assume that’s what you meant by “installed globally for your user”?
Yes, that’s what I meant.
Thanks, you’ve no idea how useful this short conversation has been.