简体   繁体   English

安装python2.6构建依赖项

[英]Installing python2.6 build dependencies

我试图使用sudo apt-get build-dep python2.6安装python2.6 buid依赖项但是我得到错误E:无法找到python2.6的源包

sudo apt-get build-dep python-defaults这个问题属于serverfault.com

This is because you have the source repositories disabled in your /etc/apt/sources.list . 这是因为您在/etc/apt/sources.list中禁用了源存储库。 Find the line: 找到这一行:

deb http://archive.ubuntu.com/ubuntu <version-name> main restricted multiverse

Duplicate it and change 'deb' to 'deb-src', like: 复制它并将'deb'更改为'deb-src',如:

deb-src http://archive.ubuntu.com/ubuntu <version-name> main restricted multiverse

Now run: 现在运行:

sudo apt-get update

You should then be able to install dependencies for Python by running: 然后,您应该能够通过运行以下命令为Python安装依赖项:

sudo apt-get build-dep python

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM