Python NumPy for Python3

Amit Yaron

New Member


Messages: 7

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: 8,922
Messages: 33,312

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.
 
OP
A

Amit Yaron

New Member


Messages: 7

I haven't found /etc/conf, defined the environment variable PYTHON_VERSION instead.
Thanks!
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 8,922
Messages: 33,312

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