In my virtualenv, I need to use sudo for all commands

前端 未结 2 1887
小蘑菇
小蘑菇 2021-02-08 20:50

I set up a virtualenv, which is working, but for some reason I need to use sudo for commands as simple as mkdir. Obviously I did something

2条回答
  •  北海茫月
    2021-02-08 21:14

    Check the directory permissions and owner and give:

    $ sudo chown -R me:me virtualenvdir
    $ sudo chmod -R a+rX virtualenvdir
    

    change me with your username, typically $USER, and virtualenvdir with your virtualenv's work directory.

提交回复
热议问题