Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Comercial
    • Calculadora

0

188
Vistas
Failed to create virtual environment in PyCharm

I have problem with create virtual environment in PyCharm. Exactly, Python in version 3.10 was add to Path during installation and I use latest version PyCharm community.

Did anyone have a similar problem?

enter image description here


Adding Informations

How I create environment :

  • file -> New project

  • Location : D:\mm\projekty\pythonProject2

  • marked New virtual environment using ( virtualenv)

  • Location : D:\mm\projekty\pythonProject2\venv

  • Base interpreter : C:\Users\mm\AppData\Local\Programs\Python\Python310\python.exe

  • In CMD:

    C:\Users\mm>python
    
    Python 3.10.0 (tags/v3.10.0:b494f59, Oct  4 2021, 19:00:18) [MSC v.1929 64 bit (AMD64)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    
10 months ago · Santiago Trujillo
3 Respuestas
Responde la pregunta

0

I had the same problem. I needed to install package python3-venv.

10 months ago · Santiago Trujillo Denunciar

0

In order to fix this, I had to run from my terminal:

pip install virtualenv

After installing the virtualenv package everything works as expected.

10 months ago · Santiago Trujillo Denunciar

0

If you have python3-env already installed, the commands provided in most of the answers will not work as you need the python3-venv package specifically for Python 3.10

The exact package as pointed by @fabel in comments is python3.10-venv .

sudo apt install python3.10-venv

Run this command and it should be good to go.

10 months ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos