write_version_py() File "setup.py", line 80, in write_version_py with open(version_file, 'w') as f:
时间: 2024-05-19 19:11:24 浏览: 11
As an AI language model, I am unable to know the exact context of your code to provide a specific solution. However, based on the error message, it seems that there is an issue on line 80 of the file "setup.py" when trying to write to the file specified in "version_file".
One possible reason for this error could be that the file does not exist or the path to the file is incorrect. You can check if the file exists and ensure that the path is correct.
Another possible reason could be that there are permission issues with the file. You can check if you have the necessary permissions to write to the file.
You can also try adding a try-except block to catch any exceptions that may be raised during the write operation and handle them accordingly.
相关推荐
![py](https://img-home.csdnimg.cn/images/20210720083646.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)