What is the Python egg cache (PYTHON_EGG_CACHE)?

后端 未结 8 648
我寻月下人不归
我寻月下人不归 2020-12-04 16:23

I\'ve just upgraded from Python 2.6.1 to 2.6.4 on my development machine and upon starting a python script was presented with the following message:

C

8条回答
  •  没有蜡笔的小新
    2020-12-04 16:39

    Phillip B Oldham's right. You can add these lines in your code:

    import os  
    os.environ['PYTHON_EGG_CACHE'] = '/tmp' # a writable directory 
    

提交回复
热议问题