0

I am trying to start a new virtual environment in my folder.

I have Python3, Python2 and virtualenv installed, it doesn't seem to be a dependency problem.

I do the command:

sudo virtualenv -p python3 venv

Note that I have already tried chmod 777 and tried doing it with and without sudo.

This command returns me:

Running virtualenv with interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /foo/bar/venv/bin/python3
Also creating executable in /foo/bar/venv/bin/python
ERROR: The executable /foo/bar/venv/bin/python3 could not be run: [Errno 13] Permission denied

I don't know if it has something to do, but I am using an SSD.

4
  • Is /foo mounted noexec? Aug 27, 2019 at 22:21
  • @bbaassssiiee how can I know that?
    – CTFE
    Aug 28, 2019 at 0:37
  • grep foo /etc/fstab|grep noexec Aug 28, 2019 at 5:46
  • @bbaassssiiee it didn't show anything and the problem keeps happening
    – CTFE
    Aug 29, 2019 at 1:51

0

You must log in to answer this question.

Browse other questions tagged .