I am trying to install python-pyparsing
onto my debian etch
but running into issues when I run sudo apt-get install python-pyparsing_1.4.2-1.1_all.deb
. Seems to give me this error here
Reading package lists... Done
Building dependency tree... Done
W: Couldn't stat source package list http://archive.debian.org etch/main Packages (/var/lib/apt/lists/archive.debian.org_debian_dists_etch_main_binary-i386_Packages) -stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Couldn't find package python-pyparsing_1.4.2-1.1_all.deb
I've run apt-get update but it tells me again same error and then
E: Some index files failed to download, they have been ignored, or old ones used instead.
UPDATE
I now have apt-get install -f
trying to install my python-pyparsing_1.4.2-1.1_all.deb
file and it reads back:
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package python-pyparsing_1.4.2-1.1_all.deb
I'm not getting the run apt-get update
anymore. Is there a directory I need to have this in? I have it inside my /mnt/hgfs/ directory at this time.
Any help is greatly appreciated on how to get pyparsing
installed for this debian
If you're trying to install Pyparsing for development purposes (that is, you're writing a program that uses Pyparsing, rather than just trying to install another deb that has Pyparsing as a dependency), you shouldn't use your distribution's package manager.
Instead, create a virtualenv ( http://www.virtualenv.org/en/latest/ ) to develop your application, and use the supplied distribute
dependency management system.
Virtualenvs are self-contained Python environments that don't have access to any of the Python modules you have installed system-wide (and can even, if you want, use a different version of Python than your system). Instead, they download and install (in themselves) all the dependencies of the programs/libs you want to run within them.
The advantages to that approach are the following:
setup.py
, instead of working by sheer luck because you have something installed system-wide that you forgot about 6 months ago. python setup.py install
, which greatly simplifies your program's installation and deployment. pip uninstall xxxx
doesn't work, just delete the virtualenv and recreate it -- it is, after all, only one line to get all your deps back. 只需打开Ubuntu软件中心,重新安装ubuntu-extras-keyring
,然后从终端运行sudo apt-get update
。
The name of the package is python-pyparsing
. You are using the package file name, which is composed of the package name, version, and architecture, with a .deb
extension to boot.
The correct command line is
sudo apt-get install python-pyparsing
The package toolchain takes care of finding a suitable version for your architecture, and downloading it from a suitable repository. ( apt-cache policy python-pyparsing
will tell you which versions are available.)
If you require this specific version, use
sudo apt-get install python-pyparsing=1.4.2-1.1
provided it is available from one of the Apt sources you have configured.
(If you have a deb
file which you have downloaded, you can install that with dpkg
:
sudo dpkg -i path/to/python-pyparsing_1.4.2-1.1_all.deb
but you should normally never need to do this. dpkg
doesn't download missing dependencies or do much anything you don't specifically ask it to.)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.