首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Python源代码在哪里?(在pyqtdeploy部署中需要)

Python源代码在哪里?(在pyqtdeploy部署中需要)
EN

Ask Ubuntu用户
提问于 2015-07-18 12:31:59
回答 1查看 309关注 0票数 0

显然,我需要python源代码(使用pyqtdeploy: Locations->> source不能为空)。正如在“Python源代码在哪里?”一书中所指出的,我能做到

代码语言:javascript
复制
apt-get source python

但是实际的问题仍然没有答案:源在哪里(就像它放在哪个目录中)?

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2015-07-18 12:39:53

来自apt-get手册页

代码语言:javascript
复制
   source
       source causes apt-get to fetch source packages. APT will examine the available packages to decide which source package to fetch. It will then find and download into the current directory the
       newest available version of that source package while respecting the default release, set with the option APT::Default-Release, the -t option or per package with the pkg/release syntax, if
       possible.

       Source packages are tracked separately from binary packages via deb-src lines in the sources.list(5) file. This means that you will need to add such a line for each repository you want to get
       sources from; otherwise you will probably get either the wrong (too old/too new) source versions or none at all.

       If the --compile option is specified then the package will be compiled to a binary .deb using dpkg-buildpackage for the architecture as defined by the --host-architecture option. If
       --download-only is specified then the source package will not be unpacked.

       A specific source version can be retrieved by postfixing the source name with an equals and then the version to fetch, similar to the mechanism used for the package files. This enables exact
       matching of the source package name and version, implicitly enabling the APT::Get::Only-Source option.

       Note that source packages are not installed and tracked in the dpkg database like binary packages; they are simply downloaded to the current directory, like source tarballs.

正如最后一行所述,它们被下载到当前的工作目录中。因此,如果您打开一个终端,它正在查看您的主目录,它将被下载到那里。

您可能希望首先为源代码包下载创建一个子目录,然后切换到该目录,然后运行命令并下载源代码包。

票数 2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/649873

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档