Python Forum
Ubuntu: Error installing watson-developer-cloud Python module
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ubuntu: Error installing watson-developer-cloud Python module
#1
Hi All,
I have installed Python 2.7.14 and 3.6.3 on Ubuntu 17.10

I would like to install the module watson-developer-clod but I receive these errors.
Command
pip install --upgrade watson-developer-cloud
Error:
build/lib.linux-x86_64-3.6/twisted/python/test running build_ext building 'twisted.test.raiser' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/src creating build/temp.linux-x86_64-3.6/src/twisted creating build/temp.linux-x86_64-3.6/src/twisted/test x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -c src/twisted/test/raiser.c -o build/temp.linux-x86_64-3.6/src/twisted/test/raiser.o src/twisted/test/raiser.c:4:10: fatal error: Python.h: File o directory non esistente #include "Python.h" ^~~~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- Failed building wheel for Twisted Running setup.py clean for Twisted Successfully built watson-developer-cloud Failed to build Twisted Installing collected packages: six, attrs, Automat, constantly, idna, hyperlink, incremental, setuptools, zope.interface, Twisted, txaio, autobahn, asn1crypto, pycparser, cffi, cryptography, pyOpenSSL, python-dateutil, urllib3, certifi, requests, pyasn1, pyasn1-modules, service-identity, watson-developer-cloud Found existing installation: six 1.10.0 Uninstalling six-1.10.0: Exception: Traceback (most recent call last): File "/usr/lib/python3.6/shutil.py", line 544, in move os.rename(src, real_dst) PermissionError: [Errno 13] Permesso negato: '/usr/lib/python3/dist-packages/__pycache__/six.cpython-36.pyc' -> '/tmp/pip-05m20ciy-uninstall/usr/lib/python3/dist-packages/__pycache__/six.cpython-36.pyc'
Any help will be greatly appreciated.
Thanks in advance for your kind support.
Regards,
Giovanni
Reply
#2
PermissionError means you need to add sudo

python2.x
sudo pip install --upgrade watson-developer-cloud
python3.x
sudo pip3 install --upgrade watson-developer-cloud
Recommended Tutorials:
Reply
#3
Hi Metulburr,
Thank you for your quick reply. I have executed both commands but I got the same error. I have attched the complete log.
Error:
#include "Python.h" ^~~~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Thanks in advace for your kind help.
Regards,
Giovanni

Attached Files

.txt   Error_log.txt (Size: 185.63 KB / Downloads: 184)
Reply
#4
Hi All,
I have solved.

sudo apt-get install python-dev
then
sudo pip install --upgrade watson-developer-cloud
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  ERROR WHILE INSTALLING PLAYSOUND MODULE satwants33 2 1,030 Mar-23-2024, 12:50 PM
Last Post: Ritik2508
  plsql developer in python dawid294 0 302 Jan-02-2024, 03:23 PM
Last Post: dawid294
  Python in Singularity Container on Ubuntu erdemath 0 876 Aug-31-2022, 02:17 PM
Last Post: erdemath
  Python icons in Ubuntu KatManDEW 4 63,601 Aug-12-2022, 08:33 AM
Last Post: rob101
  pip error on Ubuntu 18.04.6 LTS silbro 4 1,476 Apr-13-2022, 08:18 AM
Last Post: silbro
  Python 3.8 on Ubuntu 20.04 erdemath 1 1,333 Mar-07-2022, 09:31 PM
Last Post: Larz60+
  Deploy Python to Cloud and save output to Google Drive chandrabr80 2 1,522 Jan-25-2022, 06:56 AM
Last Post: ndc85430
  No module named '_cffi_backend' error with executable not with python script stephanh 2 5,552 Nov-25-2021, 06:52 AM
Last Post: stephanh
  Installing time module Led_Zeppelin 2 11,627 Aug-31-2021, 02:16 PM
Last Post: Led_Zeppelin
  Python script in Ubuntu core Nithin_Kumar 1 3,334 May-11-2021, 01:14 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020