Python Forum
Python Installation issue
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Installation issue
#1
I updated my Python version yesterday to 3.12.5. I installed it on my Windows 11 notebook and ran the installation as an Administrator.

After the installation I am seeing the following error when I launch Python at the command prompt.

Could not find platform independent libraries <prefix>

This is also causing issues with my PyCharm IDE.

Any ideas on how to resolve this? I thought of uninstalling both Python and PyCharm and then reinstalling, but if I can avoid all of that, I'd like to.

Thanks@!
Reply
#2
Just a follow up on this, after doing research the predominant solution appears to be to review the Path environment variable and make sure the correct path is identified. It should be in the \users\ subfolders. In my case the path listed as c:\windows\program files\Python312, so I updated the Path Environment to point to the scripts and exe in my \users\ subfolders.

However, that didn't make a difference. I'm still getting the error

Could not find platform independent libraries <prefix>

At this point, I'm wondering if I should uninstall Python and install the prior version, assuming there is an issue with this install.

Right now, I'm totally shut down from any Python development so I could use any tips you may have on resolving this. Sad

Thanks.
Reply
#3
Okay, update on this issue...

I was able to correct this after much searching. I needed to add PYTHONHOME to my environment variables. Once I did that the error went away.

I'm not sure why the Python installation didn't do this, but at any rate, this solved the issue.
Reply
#4
thanks for this
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Preparing an Installation with Python JgKSuperstar 2 3,357 Nov-30-2021, 11:40 AM
Last Post: JgKSuperstar
  Software(Python) Installation. Navigate Refactor Run Tools VCS tab rgbrolly 3 3,794 Oct-19-2019, 08:09 PM
Last Post: buran
  Python package installation issue. msomasun 3 4,469 Oct-09-2018, 03:56 PM
Last Post: msomasun
  Python installation change on Mac macloo 1 3,934 Jan-29-2018, 06:33 PM
Last Post: snippsat
  Python module cx_Oracle ld installation issue on Solaris11U3 SPARC: fatal: file /orac sameernatekar 0 3,225 May-24-2017, 10:47 AM
Last Post: sameernatekar

Forum Jump:

User Panel Messages

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