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
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.
pip install --upgrade watson-developer-cloud
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 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/", 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.
PermissionError means you need to add sudo

sudo pip install --upgrade watson-developer-cloud
sudo pip3 install --upgrade watson-developer-cloud
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.
#include "Python.h" ^~~~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Thanks in advace for your kind help.

Attached Files

.txt   Error_log.txt (Size: 185.63 KB / Downloads: 80)
Hi All,
I have solved.

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

Possibly Related Threads…
Thread Author Replies Views Last Post
  error while installing any library using pip in windows AkashKansal 1 274 Sep-24-2020, 07:51 AM
Last Post: buran
  Pip prints huge error when installing p5 hayden2s 1 296 Aug-08-2020, 02:30 PM
Last Post: snippsat
  Installing Error - Python 2.7.8 saranana 2 325 Jun-04-2020, 02:25 AM
Last Post: pyzyx3qwerty
  Module not Installing Evil_Patrick 9 579 May-27-2020, 03:45 PM
Last Post: Evil_Patrick
  Getting error while installing packages using pip Shreya 2 618 Apr-22-2020, 08:03 AM
Last Post: Shreya
  Error Installing PySceneDetect and OpenCV jpnoli 1 385 Mar-26-2020, 12:19 PM
Last Post: buran
  Error after installing Python3.8.2: "No module named 'apt_pkg'" Chromie 3 1,506 Mar-09-2020, 08:20 PM
Last Post: micseydel
  Can't install pip for Python 3.7.4 in Ubuntu virtual OS netbids 9 1,244 Dec-31-2019, 04:42 AM
Last Post: netbids
  Please help: problem installing/importing langdetect module in Jupyter Notebook ledgreve 3 1,744 Dec-30-2019, 08:17 AM
Last Post: LeanbridgeTech
  Python to .so library in Ubuntu for web server danowitz 0 450 Dec-20-2019, 06:42 AM
Last Post: danowitz

Forum Jump:

User Panel Messages

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