Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
site-packages issue
#3
I do not believe there are two Python's installed. My guess is that the original install was performed as administrator and is shared. If you install a package as a user, you do not have permission to modify the site packages folder, so windows creates a site packages folder under your user\AppData folder.

There are lots of ways you can get around this.
1. Do nothing. This should work fine. Python will look in you AppData for packages first, then in the "global" installation.
2. Make your own Python in your own folder where you have permission to install packages
3. Install the package as administrator.
4. Create a virtual environment that you use for doing your Python work and install the packages in that.

When I first started working with Python I thought about it like a compiler, a tool that let me write programs. It really isn't like that at all. Python is an environment, and you might need multiple, different environments to do your Python work. What I do now is I have a "system" (not really in Windows) Python where I've installed the packages I use for almost everything. When I start working on a new Python "project" I create a virtual environment that has I configure for the work I am going to do, and I always run in that virtual environment.
snippsat and Axel_Erfurt like this post
Reply


Messages In This Thread
site-packages issue - by paulgureghian - Jul-07-2022, 12:35 AM
RE: site-packages issue - by snippsat - Jul-07-2022, 11:19 AM
RE: site-packages issue - by deanhystad - Jul-07-2022, 12:31 PM
RE: site-packages issue - by snippsat - Jul-07-2022, 04:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Troubleshooting site packages ('h5py' to be specific) aukhare 2 2,143 Nov-02-2020, 03:04 PM
Last Post: snippsat
  site packages, python 3.8 Dixon 12 6,856 Feb-01-2020, 05:32 PM
Last Post: Dixon
  Site packages, Python 3.8 Dixon 2 2,649 Jan-18-2020, 10:42 PM
Last Post: Dixon
  Installing PIP packages issue Renym 2 3,169 Dec-09-2019, 04:44 PM
Last Post: Axel_Erfurt

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020