Installing python package variants with conda/pip on MacOS

1

1

I currently have installed many python packages with specific variants. For example, I'm using the gcc5 build of scipy. I've done this using macports, where it is as simple as:

port install py35-scipy+gcc5

Is there a way to specify such variants using conda or pip?

Inversely, perhaps it possible to install variants using macports to python in a conda env?

Thanks, Brett.

bbuzz31

Posted 2017-12-31T19:13:55.593

Reputation: 11

Answers

0

You could specify a different CC before installing the package with pip. It'd probably be wiser to do so under a virtualenv instead of trying to do it with the system Python (and risking maiming it beyond salvation).

That way, you can use MacPorts to have a number of different Python interpreters compiled with different compilers installed separately.

You can also use https://github.com/collective/buildout.python as an option to have a wider selection of Python environments finely tuned to your desired settings.

rbanffy

Posted 2017-12-31T19:13:55.593

Reputation: 248

Not ideal, but this should work, thanks. – bbuzz31 – 2018-01-02T19:39:27.233