PyCharm throws permission error despite elevated to run as administrator
0
I am looking for help to sort out the following issue in PyCharm: Code below: #if there is a file with the same name, delete it first if os.path.exists(csv_name + ".csv"): os.remove(csv_name + ".csv") #Now save the df_csv to csv at the needed location df_csv.to_csv(csv_name + ".csv") Error below: PermissionError: [WinError 5] Access is denied: 'csv_outexample_csv.csv' The file is created with correct name but 0 bytes. PyCharm is already running as administrator. Any clue would be appreciated. Thank you in advance.
python pycharm
share | improve this question
asked Nov 13 '1...