Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 3184  / 3 Years ago, sat, june 19, 2021, 1:27:09

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.


More From » 18.04

 Answers
3

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


In this case,


sudo apt-get install python3.10-venv

[#994] Sunday, June 20, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
enefiama

Total Points: 43
Total Questions: 125
Total Answers: 102

Location: Gabon
Member since Sat, Jul 25, 2020
4 Years ago
enefiama questions
Mon, May 23, 22, 09:15, 2 Years ago
Mon, Aug 8, 22, 03:41, 2 Years ago
Sat, Jul 2, 22, 04:59, 2 Years ago
;