easy_安装在哪里?

2024-05-18 00:57:57 发布

您现在位置:Python中文网/ 问答频道 /正文

我想安装狮身人面像,网站上说要用:

easy_install -U Sphinx

安装此命令时会发生什么情况?我也能得到消息来源吗? 它将安装在哪里?


Tags: install命令网站sphinxeasy情况狮身人面像时会
3条回答

docs

By default, packages are installed to the running Python installation's site-packages directory, unless you provide the -d or --install-dir option to specify an alternative directory, or specify an alternate location using distutils configuration files.

To get source

Sometimes a package's source distribution contains additional documentation, examples, configuration files, etc., that are not part of its actual code. If you want to be able to examine these files, you can use the --editable option to EasyInstall, and EasyInstall will look for a source distribution or Subversion URL for the package, then download and extract it or check it out as a subdirectory of the --build-directory you specify.

/usr/lib/pythonx.y/site-packages

pythonx.y是您的python版本。可能是python2.4python2.7python3.1

如果您的系统中有多个版本的python,您可以easy_install-x.y为非默认python安装软件包。同样,x.y是您的python版本。如果您想使用Python 3,可以使用它,但是您的系统默认值是2.7。

在Ubuntu上,我相信它会安装到/usr/local/lib/python2.6/dist-packages/并且我相信它会为它安装egg。-U表示如果它已经安装了

相关问题 更多 >