Ich hab ja ein setuptools "bootstrap" skript: https://github.com/jedie/PyLucid/tree/d ... /bootstrap
Das scheint man anscheinend schon nicht gleichzeitig für Py2 und 3 lauffähig zu bekommen. (Glaube ich zumindest)
Nun wollte ich es selber nutzten, mit diesem Resultat:
Code: Alles auswählen
~$ python3 pylucid-boot.py PyLucid_env_py3
PyLucid virtual environment bootstrap
Create PyLucid environment in: PyLucid_env_py3
git found in: /usr/bin/git
Please select how the pylucid own projects should be checkout:
(1) normal installation
(2) developer installation
Please select: (1/2) (default: normal) 2
Using base prefix '/usr'
New python executable in PyLucid_env_py3/bin/python3
Also creating executable in PyLucid_env_py3/bin/python
Cannot find a wheel for setuptools
Cannot find a wheel for pip
Installing setuptools, pip...
Complete output from command /home/jens/PyLucid_env_py3/bin/python3 -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named 'pip'
----------------------------------------
...Installing setuptools, pip...done.
Traceback (most recent call last):
File "pylucid-boot.py", line 2682, in <module>
main()
File "pylucid-boot.py", line 833, in main
symlink=options.symlink)
File "pylucid-boot.py", line 1001, in create_environment
install_wheel(to_install, py_executable, search_dirs)
File "pylucid-boot.py", line 969, in install_wheel
'PIP_NO_INDEX': '1'
File "pylucid-boot.py", line 911, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /home/jens/PyLucid_env_py3/bin/python3 -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip failed with error code 1
~$ python3 --version
Python 3.4.0
Letztlich ist es ein Bug im zipimport in Python 3, siehe: http://bugs.python.org/issue20621
Also doch lieber auf Py 3 Pfeifen und bei Py 2 bleiben?