python - Virtualenv: global site-packages vs the site-packages in the virtual environment -


  1. If I have some packages installed in the global site-package and in some local packages, which package import Do you? Will it work or will I get any error?
  2. Which packages should be kept in global site-packages and what packages should be locally installed? Question 1 arises in question 1 but ignores question 2 in the previous answer.

I have seen which package is kept globally for the best practice:

First of all, the main Python package, because it does not change with the relevance of the rear That you are not upgrading to a major version, and you want a dragon upgrade to be automatically applied to your virtual enviz.

Secondly, the package that is easy_install or pipl is the pain of every person's virtualwave for Rd do, but it very often does not change - for example, MySQLdb / psycopg and PIL.

Very much everything should be done in the packages of your VirtualAven (I highly recommend using the files of necessity and it makes it easy to set at least painful and set on other machines).


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

jquery - SimpleModal Confirm fails to submit form -