Jul-07-2022, 12:31 PM
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.
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.