# Advanced tutorial - Where does package install

**URL:** <https://forum.djangoproject.com/t/advanced-tutorial-where-does-package-install/4071>\
**Category:** Using Django\
**Created:** [August 26, 2020, 6:42pm UTC](https://forum.djangoproject.com/t/advanced-tutorial-where-does-package-install/4071 "2020-08-26T18:42:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![iFunction](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/ifunction/32/1941_2.png) [@iFunction](https://forum.djangoproject.com/u/iFunction)\
**Post date:** [August 26, 2020, 6:42pm UTC](https://forum.djangoproject.com/t/advanced-tutorial-where-does-package-install/4071/1 "2020-08-26T18:42:31Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Spidiffpaffpuff](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/spidiffpaffpuff/32/1557_2.png) [@Spidiffpaffpuff](https://forum.djangoproject.com/u/Spidiffpaffpuff)\
**Post date:** [August 26, 2020, 6:47pm UTC](https://forum.djangoproject.com/t/advanced-tutorial-where-does-package-install/4071/2 "2020-08-26T18:47:33Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Spidiffpaffpuff](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/spidiffpaffpuff/32/1557_2.png) [@Spidiffpaffpuff](https://forum.djangoproject.com/u/Spidiffpaffpuff)\
**Post date:** [August 26, 2020, 6:51pm UTC](https://forum.djangoproject.com/t/advanced-tutorial-where-does-package-install/4071/3 "2020-08-26T18:51:24Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![iFunction](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/ifunction/32/1941_2.png) [@iFunction](https://forum.djangoproject.com/u/iFunction)\
**Post date:** [August 27, 2020, 10:10am UTC](https://forum.djangoproject.com/t/advanced-tutorial-where-does-package-install/4071/4 "2020-08-27T10:10:54Z")

</div>

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”?

---

<div class="post-metadata">

**Author:** ![Spidiffpaffpuff](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/spidiffpaffpuff/32/1557_2.png) [@Spidiffpaffpuff](https://forum.djangoproject.com/u/Spidiffpaffpuff)\
**Post date:** [August 27, 2020, 6:29pm UTC](https://forum.djangoproject.com/t/advanced-tutorial-where-does-package-install/4071/5 "2020-08-27T18:29:47Z")

</div>

Yes, that’s what I meant.

---

<div class="post-metadata">

**Author:** ![iFunction](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/ifunction/32/1941_2.png) [@iFunction](https://forum.djangoproject.com/u/iFunction)\
**Post date:** [August 28, 2020, 9:24am UTC](https://forum.djangoproject.com/t/advanced-tutorial-where-does-package-install/4071/6 "2020-08-28T09:24:52Z")

</div>

Thanks, you’ve no idea how useful this short conversation has been.

---

<div class="post-metadata">

**Author:** ![interglobalmedia](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/interglobalmedia/32/23637_2.png) [@interglobalmedia](https://forum.djangoproject.com/u/interglobalmedia)\
**Post date:** [January 17, 2025, 6:01pm UTC](https://forum.djangoproject.com/t/advanced-tutorial-where-does-package-install/4071/7 "2025-01-17T18:01:03Z")

</div>

Very helpful. Because I just had the same problem. I don’t know why they don’t explain this part. Doesn’t take much! Thanks @Spidiffpaffpuff. I will try it out now.
