在OS X Leopard上重新安装/Library/Python [英] Reinstall /Library/Python on OS X Leopard

查看:79
本文介绍了在OS X Leopard上重新安装/Library/Python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不小心删除了OS X Leopard上的/Library/Python.我该如何重新安装?

I accidentally removed /Library/Python on OS X Leopard. How can I reinstall that?

推荐答案

/Library/Python 包含您的python网站包,这是您使用之类的命令安装的本地软件python setup.py install .这里的片段是第三方软件包,而不是Apple安装的项目-您实际的Python安装在/System/Library/etc中仍然是安全的...

/Library/Python contains your python site-packages, which is the local software you've installed using commands like python setup.py install. The pieces here are third-party packages, not items installed by Apple - your actual Python installation is still safe in /System/Library/etc...

换句话说,默认操作系统将这些目录大部分留为空白...其中没有什么很重要的(只是一个自述文件和一个路径文件).

In other words, the default OS leaves these directories mostly blank... nothing in there is critical (just a readme and a path file).

在这种情况下,您必须:

In this case, you'll have to :

  1. 重新创建目录结构:

  1. Recreate the directory structure:

重新安装第三方库.

默认的OS X安装目录结构为:

The directory structure on a default OS X install is:

/Library/Python/2.3/site-packages/Library/Python/2.5/site-packages

/Library/Python/2.3/site-packages /Library/Python/2.5/site-packages

这篇关于在OS X Leopard上重新安装/Library/Python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆