Score:0

Cannot use Python 3.10 as interpreter on Pycharm

ng flag

I have python3.10 installed but I cannot set it as an interpreter.

The installation can be confirmed by calling python3.10 directly on the terminal, and with the command below:

$ ls -ls /usr/bin/python*
   0 lrwxrwxrwx 1 root root       9 Apr 16  2018 /usr/bin/python -> python2.7
   0 lrwxrwxrwx 1 root root       9 Apr 16  2018 /usr/bin/python2 -> python2.7
3548 -rwxr-xr-x 1 root root 3633000 Feb 27  2021 /usr/bin/python2.7
   0 lrwxrwxrwx 1 root root       9 Nov 17 05:41 /usr/bin/python3 -> python3.6
5312 -rwxr-xr-x 1 root root 5437464 Oct  5 07:05 /usr/bin/python3.10
4424 -rwxr-xr-x 1 root root 4526456 Jan 26  2021 /usr/bin/python3.6
4424 -rwxr-xr-x 1 root root 4526456 Jan 26  2021 /usr/bin/python3.6m
   0 lrwxrwxrwx 1 root root      10 Nov 17 05:41 /usr/bin/python3m -> python3.6m

However, when trying to configure python3.10 as the venv on Pycharm using the path above, I get Failed to create virtual environment. I think it has something to do with the arrows in the terminal print out above, so if anyone could help explain and configure it properly, it would be really helpful.

Also, just to clarify, I want to make a virtual interpreter for this project only, and not use the system interpreter.

Score:0
cn flag

You need to add 3.10 to 'Existing environment' first. If you try 'New environment' it can't be added.enter image description here

Score:0
ng flag

Need to install the venv lib for each version of python:

In this case,

sudo apt-get install python3.10-venv
in flag
this didn't work for me - I already have this installed
weasel avatar
ng flag
@LostCrotchet any details? what does it say?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.