Can I specify which 'site-packages' direct

2019-09-03 20:17发布

问题:

I have a Homebrew installation of Python that I use as my principal (nearly exclusive) Python and need to install MySQL Utilities. But the installer places the packages in my system's site-packages directory rather than Homebrew's.

Is there a way to specify which site-packages directory should hold the MySQL Utilities files?

回答1:

If you're installing with pip, pip -t /what/ever thepackage will install packages in /what/ever. If you're installing with something else, you'd better specify what that something else is!-)