root@escuela:/home/chicos/Programas/pilas-master/pilas# cd …
root@escuela:/home/chicos/Programas/pilas-master# python setup.py install
running install
error: can’t create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/test-easy-install-1328.write-test'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/usr/local/lib/python2.7/dist-packages/
This directory does not currently exist. Please create it and try again, or
choose a different installation directory (using the -d or --install-dir
option).
Aclaro que las dependencias las instalé
Gracias por las sugerencias
el primer comando prepara todo la instalación, usando tu cuenta de usuario actual. Y el segundo
intenta instalar pilas en el sistema con permisos de administrador.
chicos@escuela:~/Programas/pilas-master$ python setup.py build
running build
running build_py
running egg_info
writing requirements to pilas.egg-info/requires.txt
writing pilas.egg-info/PKG-INFO
writing top-level names to pilas.egg-info/top_level.txt
writing dependency_links to pilas.egg-info/dependency_links.txt
reading manifest file ‘pilas.egg-info/SOURCES.txt’
reading manifest template ‘MANIFEST.in’
writing manifest file ‘pilas.egg-info/SOURCES.txt’
running build_scripts
chicos@escuela:~/Programas/pilas-master$ su
Contraseña:
root@escuela:/home/chicos/Programas/pilas-master# python setup.py install
running install
error: can’t create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/test-easy-install-1350.write-test'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/usr/local/lib/python2.7/dist-packages/
This directory does not currently exist. Please create it and try again, or
choose a different installation directory (using the -d or --install-dir
option).
insistí con
(sudo?) python setup.py build
sudo python setup.py install
pero lo hice todo con el usuario root
y algo pasó
byte-compiling build/bdist.linux-i686/egg/pilasengine/ejemplos/bloques.py to bloques.pyc
byte-compiling build/bdist.linux-i686/egg/pilasengine/ejemplos/actores_arrastrables.py to actores_arrastrables.pyc
byte-compiling build/bdist.linux-i686/egg/pilasengine/ejemplos/vaca_voladora.py to vaca_voladora.pyc
byte-compiling build/bdist.linux-i686/egg/pilasengine/widget.py to widget.pyc
creating build/bdist.linux-i686/egg/EGG-INFO
installing scripts to build/bdist.linux-i686/egg/EGG-INFO/scripts
running install_scripts
running build_scripts
creating build/bdist.linux-i686/egg/EGG-INFO/scripts
copying build/scripts-2.7/pilasengine -> build/bdist.linux-i686/egg/EGG-INFO/scripts
changing mode of build/bdist.linux-i686/egg/EGG-INFO/scripts/pilasengine to 755
copying pilas.egg-info/PKG-INFO -> build/bdist.linux-i686/egg/EGG-INFO
copying pilas.egg-info/SOURCES.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying pilas.egg-info/dependency_links.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying pilas.egg-info/not-zip-safe -> build/bdist.linux-i686/egg/EGG-INFO
copying pilas.egg-info/requires.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying pilas.egg-info/top_level.txt -> build/bdist.linux-i686/egg/EGG-INFO
creating dist
creating ‘dist/pilas-0.90.21-py2.7.egg’ and adding ‘build/bdist.linux-i686/egg’ to it
removing ‘build/bdist.linux-i686/egg’ (and everything under it)
Processing pilas-0.90.21-py2.7.egg
creating /usr/local/lib/python2.7/dist-packages/pilas-0.90.21-py2.7.egg
Extracting pilas-0.90.21-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding pilas 0.90.21 to easy-install.pth file
Installing pilasengine script to /usr/local/bin
Installed /usr/local/lib/python2.7/dist-packages/pilas-0.90.21-py2.7.egg
Processing dependencies for pilas==0.90.21
Searching for Box2D==2.1b1
Best match: Box2D 2.1b1
Adding Box2D 2.1b1 to easy-install.pth file
Using /usr/lib/pymodules/python2.7
Searching for setuptools==5.5.1
Best match: setuptools 5.5.1
Adding setuptools 5.5.1 to easy-install.pth file
Installing easy_install script to /usr/local/bin
Installing easy_install-2.7 script to /usr/local/bin
Using /usr/lib/python2.7/dist-packages
Finished processing dependencies for pilas==0.90.21