Python NumPy for Python3

Amit Yaron

New Member


Messages: 6

Hi,

How do I add numpy in python3? I've tried to do it with pip, but it failed with too many undefined references.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 7,695
Messages: 30,639

Untested but it should work, set the default to 3.5 (assuming that's the version you want) in /etc/make.conf:
Code:
DEFAULT_VERSIONS+=python=3.5
Then build math/py-numpy using the port.

Have a look at /usr/ports/Mk/bsd.default-versions.mk to see which Python versions are available.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 7,695
Messages: 30,639

The file doesn't exist by default. Just create it.
 
Top