On Tuesday, April 19, 2011 1:04:10 pm Mark Stanton wrote: > > Depending on how you set up virtualenv it will either look in the > > site-packages of python2.6 or in its own environment for the packages. > > My guess is that they are installed in python2.7 but not 2.6. > > Yup, that sounds reasonable. I did install this environment as 2.6 because > I understand Dabo won't play with 2.7 yet. > > However, when I tried to load Dabo into Python 2.7 I got the same error > message. > > When you say "installed in python2.7" what does that "in" entail? > I've just installed them "in" Linux.
The generic answer is that the desired Python modeul/package is installed in the Python site-packages directory of the Python installation. In older versions of Python that actually meant the site-packages directory. In newer versions in usually means the dist-packages directory. In any case there are two general ways that happens. If you use the distribution package manager, in Fedora that is yum(?)(I use Ubuntu so I may not have the correct program named), it takes care of putting the files in the correct place. The other method is some variation of Pythons distutils system. In that case you download the source file and do something like: python setup.py build sudo python setup.py install In this case distutils et al takes care of installing the files in the correct location. If you use the package manager it is only going to install the packages in the Python installation the package was created for. Generally the package name will clue you in i.e python2.7-sqlite. python2.6-sqlite,etc. So if you want to use two versions of Python you will need to install the needed software for each version. The other option is to install from within your virtualenv using either the source code for the package or one of the newer Python package installers like pip that will choose the correct package for the Python version it sees i.e 2.6 if you are in the virtenv. Clear as mud:) > > Sorry, not very Python or Linux able, yet. > > Mark Stanton > > 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]
