Python Forum
Can't update new python version on Pycharm
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't update new python version on Pycharm
#1
Hello, I installed new pyhton version 3.10.5 and deleted the previous one 3.8.. and now I can update the new python version to Pycharm. I have a few projects I wanna update the python version to, and in general I want the new Python version to be loaded when I'm creating new project on pycharm.

What I'm doing to try to update new Python version to a project is this: file > Settings > Projects > Project: (nameofproject) > Project Interpreter and there I'm choosing the location of the new Python EXE version, but there it doesnt let press OK unless I'm changin the location of the project to a new folder. After that I press ok but I get a message that it wasn't able to create interpreter:

[Image: a992641a497968986315c0e349475a3a01d0602b.png]


Now, when I'm trying to make it so that when I create a new project on Pycharm it will open on the new Python version I do this: File > New project and then I open the drop down menu 'Project Interpreter' and choosing the location of the Python EXE and I did above, but then I get basically the same message:

[Image: d0056bec10655dfdfb1e3e7f705187947354c565.png]


Thank for helpers in advance!
Reply
#2
Look at Configure a Python interpreter
Set default interpreter to your Python version 3.10.5(point to python.exe).
Now it find a old virtualenv 16.4.3(2011) version and try to use that.
Also in first image there is venv(then will PyCharm make a virtual environment)
Look a link given and fix this.

Also from command line so is best that python and pip point to your new version.
Test from cmd example:
C:\
λ Python -V
Python 3.10.5

# Your output here is path you set in PyCharm
C:\
λ python -c "import sys;print(sys.executable)"
C:\python310\python.exe

# pip shall of course point to same Path(root folder)
C:\
λ pip -V
pip 22.0.4 from C:\Python310\lib\site-packages\pip (python 3.10)
Reply
#3
(Jul-22-2022, 02:54 PM)snippsat Wrote: Look at Configure a Python interpreter
Set default interpreter to your Python version 3.10.5(point to python.exe).
Now it find a old virtualenv 16.4.3(2011) version and try to use that.
Also in first image there is venv(then will PyCharm make a virtual environment)
Look a link given and fix this.

Also from command line so is best that python and pip point to your new version.
Test from cmd example:
C:\
λ Python -V
Python 3.10.5

# Your output here is path you set in PyCharm
C:\
λ python -c "import sys;print(sys.executable)"
C:\python310\python.exe

# pip shall of course point to same Path(root folder)
C:\
λ pip -V
pip 22.0.4 from C:\Python310\lib\site-packages\pip (python 3.10)

Ye pip is in the same folder as the new version, I did all that to install Pygam initially btw becuase pygame did work for me, and now pygame works in python. anyway I did the steps above and I even upgraded virtualenv and still same messages as above pictures...
Reply
#4
(Jul-22-2022, 05:12 PM)GOKUUUU Wrote: Ye pip is in the same folder as the new version, I did all that to install Pygam initially btw becuase pygame did work for me, and now pygame works in python. anyway I did the steps above and I even upgraded virtualenv and still same messages as above pictures...
Image clearly show that you use virtual environment(PyCharm has this a default setup),you most change this for now it find a old one unless one.
Do at image under,of course with Path to your Python 3.10.5 interpreter(python.exe).
[Image: UfOYDG.png]
Reply
#5
(Jul-22-2022, 06:45 PM)snippsat Wrote:
(Jul-22-2022, 05:12 PM)GOKUUUU Wrote: Ye pip is in the same folder as the new version, I did all that to install Pygam initially btw becuase pygame did work for me, and now pygame works in python. anyway I did the steps above and I even upgraded virtualenv and still same messages as above pictures...
Image clearly show that you use virtual environment(PyCharm has this a default setup),you most change this for now it find a old one unless one.
Do at image under,of course with Path to your Python 3.10.5 interpreter(python.exe).
[Image: UfOYDG.png]

Man I appriciate the help but I don't understand what you are saying. I upgraded virtualenv to 20.15.1 and it still trying to load the old one 16.4.3.
your instruction in english are unclear.
Reply
#6
This should not be difficult,also i don't use PyCharm as my editor.
When start File --> New Project then this Window under pop up.
The follow instruction in image,then it will use your Python 3.10.5 interpreter(python.exe),and not virtual environment at all.
[Image: 3pkyea.png]
Reply
#7
(Jul-23-2022, 09:51 AM)snippsat Wrote: This should not be difficult,also i don't use PyCharm as my editor.
When start File --> New Project then this Window under pop up.
The follow instruction in image,then it will use your Python 3.10.5 interpreter(python.exe),and not virtual environment at all.
[Image: 3pkyea.png]

I did that before you wrong and that didn't work aswell. I eventually upgraded pycharm to the latest version and it loaded the new python and veng and now its all good. Appriciate the help!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  run part of a script with a different version of Python jdog 2 395 Jan-09-2024, 08:49 PM
Last Post: jdog
  How to find out from outside Python (in Windows) the current version of Python? pstein 4 680 Oct-04-2023, 10:01 AM
Last Post: snippsat
  How to resolve version conflicts in Python? taeefnajib 0 873 Apr-27-2023, 08:37 PM
Last Post: taeefnajib
  Python venv and PIP version issue JanOlvegg 2 1,200 Feb-22-2023, 02:22 AM
Last Post: JanOlvegg
  Python Version upgrade nitinkukreja 1 855 Feb-04-2023, 10:27 PM
Last Post: Larz60+
  Update old Python version because of security threads SanderV 2 1,507 Jun-06-2022, 07:49 PM
Last Post: SanderV
  Is it possible to update a CSS file from Python bigAL_python 4 2,197 Apr-20-2022, 01:38 PM
Last Post: bigAL_python
  Building python (3.9.5) with different libexpat version (2.4.6) raghupcr 0 1,261 Feb-25-2022, 11:29 AM
Last Post: raghupcr
  Python keeps running the old version of the code quest 2 3,646 Jan-20-2022, 07:34 AM
Last Post: ThiefOfTime
  How to use GPU in Python or Pycharm? plumberpy 2 12,915 Oct-11-2021, 12:57 PM
Last Post: plumberpy

Forum Jump:

User Panel Messages

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