I need some help using cdo with python
Added by Álvaro Sánchez over 6 years ago
Hi i followed the instructions in the cdo tutorial,but when i use pip install cdo this happens:
Collecting cdo
Collecting six (from cdo)
Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Installing collected packages: six, cdo
Exception:
Traceback (most recent call last):
File "/home/practicas/.local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/home/practicas/.local/lib/python2.7/site-packages/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/home/practicas/.local/lib/python2.7/site-packages/pip/req/req_set.py", line 784, in install
**kwargs
File "/home/practicas/.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/practicas/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "/home/practicas/.local/lib/python2.7/site-packages/pip/wheel.py", line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "/home/practicas/.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 83, in copyfile
with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permiso denegado: '/usr/local/lib/python2.7/dist-packages/six.py'
i'm quite a noob in ubuntu and python,so maybe it's a fool question,but i'm so tired and i need help.
Thank you
Replies (2)
RE: I need some help using cdo with python - Added by Ralf Mueller over 6 years ago
try
pip install cdo --user
usually pip installs packages into system directories, where normal users do not have write access. --user
let pip install into somewhere within your home dir.
hth
ralf
RE: I need some help using cdo with python - Added by Álvaro Sánchez over 6 years ago
It works,thank you my friend.
God bless you