[Tutor] Help installing Python3 in a particular folder
Alan
alanwilter at gmail.com
Wed Jul 10 13:04:59 CEST 2013
Hi there,
I am doing this:
cd /temp
wget -c http://www.python.org/ftp/python/3.3.2/Python-3.3.2.tar.xz
tar xvf Python-3.3.2.tar.xz
cd Python-3.3.2
./configure --prefix=/sw/arch
make
make test
make install
Then, when I try:
/sw/arch/bin/python3
Traceback (most recent call last):
File "/sw/arch/lib/python3.3/site.py", line 69, in <module>
import os
File "/sw/arch/lib/python3.3/os.py", line 659, in <module>
from collections.abc import MutableMapping
File "/sw/arch/lib/python3.3/collections/__init__.py", line 12, in
<module>
from keyword import iskeyword as _iskeyword
ImportError: No module named 'keyword'
But if I do:
export PYTHONPATH=/temp/Python-3.3.2/Lib
then python3 will work.
However, this does seems correct for me. I shouldn't depend on the
installation folder (which I want to delete btw).
I compared
/sw/arch/lib/python3.3/ X /temp/Python-3.3.2/Lib
and found this files missing:
Only in /temp/Python-3.3.2/Lib: base64.py
Only in /temp/Python-3.3.2/Lib: cgi.py
Only in /temp/Python-3.3.2/Lib: cProfile.py
Only in /temp/Python-3.3.2/Lib: keyword.py
Only in /temp/Python-3.3.2/Lib: msilib
Only in /temp/Python-3.3.2/Lib: pdb.py
Only in /temp/Python-3.3.2/Lib: plat-aix4
Only in /temp/Python-3.3.2/Lib: plat-darwin
Only in /temp/Python-3.3.2/Lib: platform.py
Only in /temp/Python-3.3.2/Lib: plat-freebsd4
Only in /temp/Python-3.3.2/Lib: plat-freebsd5
Only in /temp/Python-3.3.2/Lib: plat-freebsd6
Only in /temp/Python-3.3.2/Lib: plat-freebsd7
Only in /temp/Python-3.3.2/Lib: plat-freebsd8
Only in /temp/Python-3.3.2/Lib: plat-generic
Only in /temp/Python-3.3.2/Lib: plat-netbsd1
Only in /temp/Python-3.3.2/Lib: plat-next3
Only in /temp/Python-3.3.2/Lib: plat-os2emx
Only in /temp/Python-3.3.2/Lib: plat-sunos5
Only in /temp/Python-3.3.2/Lib: plat-unixware7
Only in /temp/Python-3.3.2/Lib: profile.py
Only in /temp/Python-3.3.2/Lib: pydoc.py
Only in /temp/Python-3.3.2/Lib: quopri.py
Only in /temp/Python-3.3.2/Lib: smtpd.py
Only in /temp/Python-3.3.2/Lib: symbol.py
Only in /temp/Python-3.3.2/Lib: tabnanny.py
Only in /temp/Python-3.3.2/Lib: token.py
Only in /temp/Python-3.3.2/Lib: uu.py
During "make install" I noticed this:
/sw/arch/lib/python3.3 already exist, returning without doing anything
arguments where -c ./Lib/keyword.py /sw/arch/lib/python3.3
/sw/arch/bin/install -c ./Lib/keyword.py /sw/arch/lib/python3.3
So, apparently keyword.py should have been copied into
/sw/arch/lib/python3.3 but it's really not happening.
What am I doing wrong here?
Thanks,
Alan
--
Alan Wilter SOUSA da SILVA, DSc
Bioinformatician, UniProt - PANDA, EMBL-EBI
CB10 1SD, Hinxton, Cambridge, UK
+44 1223 49 4588
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130710/15416b1d/attachment.html>
More information about the Tutor
mailing list