Il giorno dom 1 nov 2020 alle 17:07, Stefan Thomas
<[email protected]> ha scritto:
many thanks to Your fast reply. But unfortunately it didn't work. It
seems to be a python problem:
pip install setuptools
Collecting setuptools
Using cached
https://files.pythonhosted.org/packages/e1/b7/182161210a13158cd3ccc41ee19aadef54496b74f2817cc147006
ec932b4/setuptools-44.1.1-py2.py3-none-any.whl
Installing collected packages: setuptools
Exception:
Traceback (most recent call last):
File
"/home/stefan/.local/lib/python2.7/site-packages/pip/basecommand.py",
line 215, in main
status = self.run(options, args)
File
"/home/stefan/.local/lib/python2.7/site-packages/pip/commands/install.py",
line 342, in run
prefix=options.prefix_path,
File
"/home/stefan/.local/lib/python2.7/site-packages/pip/req/req_set.py",
line 784, in install
**kwargs
File
"/home/stefan/.local/lib/python2.7/site-packages/pip/req/req_install.py",
line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File
"/home/stefan/.local/lib/python2.7/site-packages/pip/req/req_install.py",
line 1064, in move_wheel_files
isolated=self.isolated,
File "/home/stefan/.local/lib/python2.7/site-packages/pip/wheel.py",
line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "/home/stefan/.local/lib/python2.7/site-packages/pip/wheel.py",
line 323, in clobber
shutil.copyfile(srcfile, destfile)
File "/usr/lib/python2.7/shutil.py", line 97, in copyfile
with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permission denied:
'/usr/local/lib/python2.7/dist-packages/easy_install.py'
You are using pip2 (python2) installed in ~/.local, but you're trying
to install a py3 wheel.
pip2 install seems to try to install under /usr/local by default¹, but
it won't work unless you use sudo.
I would try:
pip3 install --user setuptools
¹ pip3 is smarter and doesn't need the --user switch if called as
regular user, see below:
$ pip -V
pip 20.2.2 from /usr/lib/python3.9/site-packages/pip (python 3.9)
$ pip install setuptools
Defaulting to user installation because normal site-packages is not
writeable
Requirement already satisfied: setuptools in
/usr/lib/python3.9/site-packages (49.1.3)