On Saturday, April 23, 2011 7:19:21 am Mark Stanton wrote:
> > Back to what I said earlier, packages has more than one meaning. When you
> > are going through yum you are looking at the distribution
> > packages(Fedora). When you are using pip you are fetching Python
> > packages, they are not the same thing, though they may have similar
> > names.
> 
> Are you sure about this, that the OS package doesn't install into Python? 
> I understand that the OS isn't Python, but I'd assumed, when the OS brings
> me a Python package, it also "installs it into" Python.  No?

If it is for Python, yes it gets installed in the Python installation. Probably 
best to use an example. In this case xlrd, a Python library to read Excel 
files. 
I am using Ubuntu so the Linux package name may differ from what you see on 
Fedora.

If I go through my distribution(Ubuntu) package manager(Synaptic) I find the 
package:

python-xlrd

This is automatically installed by the package manager.

If I chose not use Synaptic to install the Python package, but instead use pip 
then I would use the name in the Python Package Index(pypi):

pip install xlrd

In this case pip takes care of the installation.


The end result is the same, the path to get there is different. In general 
Python 
packages installed through your distribution(Fedora) have the files 
pre-compiled 
for a specific version of Python. Fetching a Python package directly usually 
involves a step where the files are compiled to the Python version they see, 
whether manually or through a process like pip. 


> 
> > When you are in your virtual environment try:
> > pip install pysqlite
> 
> I did.  It didn't work.  Looks like a web path problem.  I'll sort it out,
> I hope.
> 
> Mark Stanton
> One small step for mankind...
> 
> 
> _______________________________________________
> Post Messages to: [email protected]
> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
> Searchable Archives: http://leafe.com/archives/search/dabo-users
> This message:
> http://leafe.com/archives/byMID/[email protected]

-- 
Adrian Klaver
[email protected]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to