Fedora 18, x86_64. Okay, so:
I have installed python3 in ~/utils/src/python3/Python-3.3.0/
so that it's available on NFS and I don't have to reinstall it on every machine in the lab.
I want to install numpy.
I got the source, it's in ~/utils/src/python3/numpy-1.7.0/
When I run python3 ./setup.py
, I get:
file "~/utils/src/python3/Python-3.3.0/Lib/distutils/text_file.py", line 115, in open
self.file=io.open(self.filename, 'r', errors=self.errors)
FileNotFoundError: [Errno 2] No such file or directory:
'/usr/local/lib/python3.3/config-3.3m/Makefile'
Going up the stack, I get to sysconfig.py, line 435, which seems to generate the path name by calling get_makefile_filename, which is in sysconfig.py, line 251. It accesses globals (python_build, _sys_home, and a bunch of others), and I'm not sure how they're configured.
I tried passing --prefix=~/utils/src/python3/Python-3.3.0
to setup.py, but got nowhere. (And I'm not sure what exactly --prefix
does anyways)
Has anyone had luck installing packages with nonstandard python3 installs?
Thanks,
Charles.