Home > Net >  Failed to create a virtual environment on MacOS with M1 with PyCharm
Failed to create a virtual environment on MacOS with M1 with PyCharm

Time:11-17

I just bought a new MacBook Pro with M1 Pro I installed python 3.11 and Pycharm as IDE. I tried to create a new project using virtualenv but it continues to show an error (see below)...

I tried using Python 3.10, I tried installing it from Homebrew, reinstalling it.. nothing changes...

Steps to Reproduce

  1. Start a new project.
  2. Select VirtualEnv as Interpreter
  3. Create

screenshot of creation window

What happen

screenshot of the result

someone knows how to solve this annoying issue?

Thanks in advance

CodePudding user response:

You are trying to create the virtualenv at /Users/test, to which (by default, and unless running as root) you don't have permissions. Try setting the Location field to your own home (somewhere under /Users/antonellobarbone/).

CodePudding user response:

Have you tried creating it via command line? If that works, the problem is Pycharm. If not, the problem is either in your base installation or access rights.

  • Related