MetaGPT icon indicating copy to clipboard operation
MetaGPT copied to clipboard

error: [WinError 32] 另一个程序正在使用此文件,进程无法访问。: 'c:\\python311\\lib\\site-packages\\metagpt-0.1-py3.11.egg'

Open ran2014zx opened this issue 1 year ago • 6 comments

why do i have this error? had this program since begining... help

ran2014zx avatar Aug 13 '23 08:08 ran2014zx

same here

NaheelSalman avatar Aug 13 '23 11:08 NaheelSalman

I am also experiencing this issue when trying to setup the tool for the first time. Happy to help however I can.

Additional info:

  • Running on Windows 11 from command prompt (as administrator).
  • Tried checking out with "git checkout 979753b89bd0ed0d373453daebbc124597595786" (a commit from two days ago before this issue posted) to no avail.
  • I ran "pip -r requirements.txt" from the terminal while in the "metagpt" directory after cloning the repository.

Brennan-Richards avatar Aug 13 '23 23:08 Brennan-Richards

I have no idea about the root cause, however Python 3.11's pip seems to be problematic with this. Uninstalled 3.11, installed 3.10.x, the issue was resolved. This is just as a temporary workaround.

curiousbero avatar Aug 14 '23 08:08 curiousbero

  1. Make sure your python version is 3.9.x
  2. Delete the egg file.
  3. Execute pip install -r requirements.txt

voidking avatar Aug 14 '23 12:08 voidking

  1. Make sure your python version is 3.9.x
  2. Delete the egg file.
  3. Execute pip install -r requirements.txt

In my case, this seems to have solved the original error. I was able to successfully run 'python setup.py install'. Thank you @voidking @curiousbero !

Brennan-Richards avatar Aug 14 '23 20:08 Brennan-Richards

  1. Make sure your python version is 3.9.x
  2. Delete the egg file.
  3. Execute pip install -r requirements.txt

谢谢!!我试了很多方法都没成功,就你这方法最靠谱!!好人!!

pcycccccc avatar Nov 10 '23 09:11 pcycccccc