简体   繁体   中英

Trying to create a virtual environment in python 3.9

I have a final for school that requires me to make a Django project. I installed python 3.9 on my Mac fine but when I try to run virtualenv venv , I get this error virtualenv: error: argument dest: the destination . is not write-able at /Users/BUS virtualenv: error: argument dest: the destination . is not write-able at /Users/BUS

I am not sure where else I would be able to write in the virtual env. I'm new to this so I don't really know where to go from here? Any help would be very much appreciated.

您可以通过运行此命令chmod u+x /YOUR/PATH/TO/PROJECT/SCRIPT来授予您的项目目录写入和执行权限,如果它对尝试 sudo 没有帮助,我也不是专家,但学到了一件事,如果您在任何“ix”系统中运行 python 以获得 root 设置的密码,因为如果您在工作站上运行脚本,那么带有sudo的命令chmod迟早会破坏特权,希望这会有所帮助,lmk。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM