简体   繁体   English

尝试在 python 3.9 中创建虚拟环境

[英]Trying to create a virtual environment in python 3.9

I have a final for school that requires me to make a Django project.我有一个学校期末考试,需要我做一个 Django 项目。 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我在 Mac 上安装了 python 3.9 很好,但是当我尝试运行virtualenv venv ,我收到此错误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。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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