简体   繁体   中英

Multiple Python Distributions — Managing Packages

Ubuntu (10.10) came installed with Python2.6, 2.7, and 3. In addition, I have installed the Enthought Python Distribution. Is there any way to manage Python packages within these distributions intelligently?

For compatibility, I'd imagine switching between these distributions occasionally. If I install PyBlah , I'd like it to be available under all of the distributions. Can I do better than installing PyBlah under each distribution?

Well you can't install a package across 2.x-3.x distributions, they're not compatable. So the easiest ( and recommended way) is to install it for each version.

If you're sure you want to install it for all your versions, you can install it somewhere like ~/lib/python/ and add that directory to your PYTHONPATH .

Virtualenv和virtualenvwrapper使管理包非常好!

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.

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