简体   繁体   English

无法在 pycharm 中创建文件

[英]Cannot create file in pycharm

I'm trying to create a file in pycharm.我正在尝试在 pycharm 中创建一个文件。 I get an error 'Cannot create file'.我收到错误“无法创建文件”。 I tried restarting pycharm too.我也尝试重新启动 pycharm。 I get the same error.我犯了同样的错误。 This happens not only while creating python files, but any other type of file too.这不仅会在创建 python 文件时发生,在任何其他类型的文件中也会发生。

第一个图像是我的项目文件夹的样子。

第二张图片是我得到的错误

I had the same issue, but I solved it this way:我有同样的问题,但我是这样解决的:

  1. Find your project and right-click on it找到您的项目并右键单击它
  2. Select properties and go to the security tab Select 属性和 go 到安全选项卡
  3. Click edit and allow full control单击编辑并允许完全控制
  4. Restart pycharm重启 pycharm

It should be fixed应该修复

Bro don't go to search the properties if you are using the window 11 then it will be the driver problem in that So go into the notepad and create a python file and cut and copy paste that file in to that file were the pycham project is running to there Step 1 open a notepad file and create a python file in the desktop and name it Step 2 cut and paste were the main code is there were your pycham project file is there. Bro don't go to search the properties if you are using the window 11 then it will be the driver problem in that So go into the notepad and create a python file and cut and copy paste that file in to that file were the pycham project正在运行到那里第 1 步打开一个记事本文件并在桌面上创建一个 python 文件并将其命名第 2 步剪切和粘贴主代码在那里你的 pycham 项目文件在那里。 Step 3 after that it will It happens because that Direct want a permission from adminstrator in windows 11 for d drive.之后的第 3 步会发生这种情况,因为 Direct 需要 windows 11 中的管理员对 d 驱动器的许可。

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

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