Error in installing google-cloud - python

I am get some errors while trying to install google-cloud by using pip.
I tried the following commands to install google-cloud:
sudo pip install --upgrade google-cloud
sudo pip3 install --upgrade google-cloud
sudo pip3.6 install --upgrade google-cloud
But I am getting the following error by all these commands:
Requirement already satisfied: google-cloud in /usr/lib/python3.6/si
te-packages/google_cloud-0.32.1.dev1-py3.6.egg
Requirement already satisfied: google-api-core<0.2.0dev,>=0.1.2 in /
usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-bigquery<0.29dev,>=0.28.
0 in /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-bigquery-datatransfer<0.
2dev,>=0.1.0 in /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-bigtable<0.29dev,>=0.28.
1 in /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-container<0.2dev,>=0.1.0
in /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-core<0.29dev,>=0.28.0 in
/usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-datastore<1.5dev,>=1.4.0
in /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-dns<0.29dev,>=0.28.0 in
/usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-error-reporting<0.29dev,
>=0.28.0 in /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-firestore<0.29dev,>=0.28
.0 in /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-language<1.1dev,>=1.0.0
in /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-logging<1.5dev,>=1.4.0 i
n /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-monitoring<0.29dev,>=0.2
8.0 in /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-pubsub<0.31dev,>=0.30.0
in /usr/lib/python3.6/site-packages/google_cloud_pubsub-0.30.1-py3.6
.egg (from google-cloud)
Requirement already satisfied: google-cloud-resource-manager<0.29dev
,>=0.28.0 in /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-runtimeconfig<0.29dev,>=
0.28.0 in /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-spanner<0.30dev,>=0.29.0
in /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-speech<0.31dev,>=0.30.0
in /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-storage<1.7dev,>=1.6.0 i
n /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-trace<0.18dev,>=0.17.0 i
n /usr/lib/python3.6/site-packages/google_cloud_trace-0.17.0-py3.6.e
gg (from google-cloud)
Requirement already satisfied: google-cloud-translate<1.4dev,>=1.3.0
in /usr/lib/python3.6/site-packages/google_cloud_translate-1.3.0-py
3.6.egg (from google-cloud)
Requirement already satisfied: google-cloud-videointelligence<1.1dev
,>=1.0.0 in /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-vision<0.30dev,>=0.29.0
in /usr/lib/python3.6/site-packages/google_cloud_vision-0.29.0-py3.6
.egg (from google-cloud)
Requirement already satisfied: google-auth<2.0.0dev,>=0.4.0 in /usr/
lib/python3.6/site-packages (from google-api-core<0.2.0dev,>=0.1.2->
google-cloud)
Requirement already satisfied: pytz in /usr/lib/python3.6/site-packa
ges (from google-api-core<0.2.0dev,>=0.1.2->google-cloud)
Requirement already satisfied: googleapis-common-protos<2.0dev,>=1.5
.3 in /usr/lib/python3.6/site-packages (from google-api-core<0.2.0de
v,>=0.1.2->google-cloud)
Requirement already satisfied: requests<3.0.0dev,>=2.18.0 in /usr/li
b/python3.6/site-packages (from google-api-core<0.2.0dev,>=0.1.2->go
ogle-cloud)
Requirement already satisfied: protobuf>=3.0.0 in /usr/lib64/python3
.6/site-packages (from google-api-core<0.2.0dev,>=0.1.2->google-clou
d)
Requirement already satisfied: six>=1.10.0 in /usr/lib/python3.6/sit
e-packages (from google-api-core<0.2.0dev,>=0.1.2->google-cloud)
Requirement already satisfied: setuptools>=34.0.0 in /usr/lib/python
3.6/site-packages (from google-api-core<0.2.0dev,>=0.1.2->google-clo
ud)
Requirement already satisfied: google-resumable-media>=0.2.1 in /usr
/lib/python3.6/site-packages (from google-cloud-bigquery<0.29dev,>=0
.28.0->google-cloud)
Requirement already satisfied: google-gax<0.16dev,>=0.15.7 in /usr/l
ib/python3.6/site-packages (from google-cloud-bigtable<0.29dev,>=0.2
8.1->google-cloud)
Requirement already satisfied: gapic-google-cloud-datastore-v1<0.16d
ev,>=0.15.0 in /usr/lib/python3.6/site-packages (from google-cloud-d
atastore<1.5dev,>=1.4.0->google-cloud)
Requirement already satisfied: gapic-google-cloud-error-reporting-v1
beta1<0.16dev,>=0.15.0 in /usr/lib/python3.6/site-packages (from goo
gle-cloud-error-reporting<0.29dev,>=0.28.0->google-cloud)
Requirement already satisfied: gapic-google-cloud-logging-v2<0.92dev
,>=0.91.0 in /usr/lib/python3.6/site-packages (from google-cloud-log
ging<1.5dev,>=1.4.0->google-cloud)
Requirement already satisfied: grpc-google-iam-v1<0.12dev,>=0.11.1 i
n /usr/lib/python3.6/site-packages (from google-cloud-pubsub<0.31dev
,>=0.30.0->google-cloud)
Collecting psutil<6.0dev,>=5.2.2 (from google-cloud-pubsub<0.31dev,>
=0.30.0->google-cloud)
Using cached psutil-5.4.3.tar.gz
Requirement already satisfied: pyasn1-modules>=0.2.1 in /usr/lib/pyt
hon3.6/site-packages (from google-auth<2.0.0dev,>=0.4.0->google-api-
core<0.2.0dev,>=0.1.2->google-cloud)
Requirement already satisfied: cachetools>=2.0.0 in /usr/lib/python3
.6/site-packages (from google-auth<2.0.0dev,>=0.4.0->google-api-core
<0.2.0dev,>=0.1.2->google-cloud)
Requirement already satisfied: rsa>=3.1.4 in /usr/lib/python3.6/site
-packages (from google-auth<2.0.0dev,>=0.4.0->google-api-core<0.2.0d
ev,>=0.1.2->google-cloud)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /usr/lib/pyt
hon3.6/site-packages (from requests<3.0.0dev,>=2.18.0->google-api-co
re<0.2.0dev,>=0.1.2->google-cloud)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python
3.6/site-packages (from requests<3.0.0dev,>=2.18.0->google-api-core<
0.2.0dev,>=0.1.2->google-cloud)
Requirement already satisfied: idna<2.7,>=2.5 in /usr/lib/python3.6/
site-packages (from requests<3.0.0dev,>=2.18.0->google-api-core<0.2.
0dev,>=0.1.2->google-cloud)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/lib/pyt
hon3.6/site-packages (from requests<3.0.0dev,>=2.18.0->google-api-co
re<0.2.0dev,>=0.1.2->google-cloud)
Requirement already satisfied: dill<0.3dev,>=0.2.5 in /usr/lib/pytho
n3.6/site-packages (from google-gax<0.16dev,>=0.15.7->google-cloud-b
igtable<0.29dev,>=0.28.1->google-cloud)
Requirement already satisfied: future<0.17dev,>=0.16.0 in /usr/lib/p
ython3.6/site-packages (from google-gax<0.16dev,>=0.15.7->google-clo
ud-bigtable<0.29dev,>=0.28.1->google-cloud)
Requirement already satisfied: ply==3.8 in /usr/lib/python3.6/site-p
ackages (from google-gax<0.16dev,>=0.15.7->google-cloud-bigtable<0.2
9dev,>=0.28.1->google-cloud)
Requirement already satisfied: grpcio<2.0dev,>=1.0.2 in /usr/lib64/p
ython3.6/site-packages (from google-gax<0.16dev,>=0.15.7->google-clo
ud-bigtable<0.29dev,>=0.28.1->google-cloud)
Requirement already satisfied: oauth2client<4.0dev,>=2.0.0 in /usr/l
ib/python3.6/site-packages (from gapic-google-cloud-datastore-v1<0.1
6dev,>=0.15.0->google-cloud-datastore<1.5dev,>=1.4.0->google-cloud)
Requirement already satisfied: proto-google-cloud-datastore-v1[grpc]
<0.91dev,>=0.90.3 in /usr/lib/python3.6/site-packages (from gapic-go
ogle-cloud-datastore-v1<0.16dev,>=0.15.0->google-cloud-datastore<1.5
dev,>=1.4.0->google-cloud)
Requirement already satisfied: proto-google-cloud-error-reporting-v1
beta1[grpc]<0.16dev,>=0.15.3 in /usr/lib/python3.6/site-packages (fr
om gapic-google-cloud-error-reporting-v1beta1<0.16dev,>=0.15.0->goog
le-cloud-error-reporting<0.29dev,>=0.28.0->google-cloud)
Requirement already satisfied: proto-google-cloud-logging-v2[grpc]<0
.92dev,>=0.91.3 in /usr/lib/python3.6/site-packages (from gapic-goog
le-cloud-logging-v2<0.92dev,>=0.91.0->google-cloud-logging<1.5dev,>=
1.4.0->google-cloud)
Requirement already satisfied: pyasn1<0.5.0,>=0.4.1 in /usr/lib/pyth
on3.6/site-packages (from pyasn1-modules>=0.2.1->google-auth<2.0.0de
v,>=0.4.0->google-api-core<0.2.0dev,>=0.1.2->google-cloud)
Requirement already satisfied: httplib2>=0.9.1 in /usr/lib/python3.6
/site-packages (from oauth2client<4.0dev,>=2.0.0->gapic-google-cloud
-datastore-v1<0.16dev,>=0.15.0->google-cloud-datastore<1.5dev,>=1.4.
0->google-cloud)
Installing collected packages: psutil
Running setup.py install for psutil ... error
Complete output from command /usr/bin/python3 -u -c "import setu
ptools, tokenize;__file__='/tmp/pip-build-1mt8_94q/psutil/setup.py';
f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\
r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install
--record /tmp/pip-co20my3o-record/install-record.txt --single-versi
on-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/psutil
copying psutil/_exceptions.py -> build/lib.linux-x86_64-3.6/psut
il
creating build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/__main__.py -> build/lib.linux-x86_64-3.6/p
sutil/tests
copying psutil/tests/test_bsd.py -> build/lib.linux-x86_64-3.6/p
sutil/tests
copying psutil/tests/test_contracts.py -> build/lib.linux-x86_64
-3.6/psutil/tests
copying psutil/tests/test_aix.py -> build/lib.linux-x86_64-3.6/p
sutil/tests
copying psutil/tests/test_memory_leaks.py -> build/lib.linux-x86
_64-3.6/psutil/tests
copying psutil/tests/test_connections.py -> build/lib.linux-x86_
64-3.6/psutil/tests
copying psutil/tests/test_system.py -> build/lib.linux-x86_64-3.
6/psutil/tests
copying psutil/tests/test_linux.py -> build/lib.linux-x86_64-3.6
/psutil/tests
copying psutil/tests/test_misc.py -> build/lib.linux-x86_64-3.6/
psutil/tests
copying psutil/tests/__init__.py -> build/lib.linux-x86_64-3.6/p
sutil/tests
copying psutil/tests/test_osx.py -> build/lib.linux-x86_64-3.6/p
sutil/tests
copying psutil/tests/test_process.py -> build/lib.linux-x86_64-3
.6/psutil/tests
copying psutil/tests/test_windows.py -> build/lib.linux-x86_64-3
.6/psutil/tests
copying psutil/tests/test_posix.py -> build/lib.linux-x86_64-3.6
/psutil/tests
copying psutil/tests/test_sunos.py -> build/lib.linux-x86_64-3.6
/psutil/tests
copying psutil/tests/test_unicode.py -> build/lib.linux-x86_64-3
.6/psutil/tests
running build_ext
building 'psutil._psutil_linux' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/psutil
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -fmessag
e-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fsta
ck-protector-strong -funwind-tables -fasynchronous-unwind-tables -g
-DOPENSSL_LOAD_CONF -fmessage-length=0 -grecord-gcc-switches -O2 -Wa
ll -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fas
ynchronous-unwind-tables -g -fmessage-length=0 -grecord-gcc-switches
-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tab
les -fasynchronous-unwind-tables -g -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_
VERSION=543 -DPSUTIL_LINUX=1 -I/usr/include/python3.6m -c psutil/_ps
util_common.c -o build/temp.linux-x86_64-3.6/psutil/_psutil_common.o
psutil/_psutil_common.c:9:10: fatal error: Python.h: No such fil
e or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file_
_='/tmp/pip-build-1mt8_94q/psutil/setup.py';f=getattr(tokenize, 'ope
n', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();ex
ec(compile(code, __file__, 'exec'))" install --record /tmp/pip-co20m
y3o-record/install-record.txt --single-version-externally-managed --
compile" failed with error code 1 in /tmp/pip-build-1mt8_94q/psutil/
I think that some packages are being compiled by GCC and GCC is trying to find python.h. But python.h is missing, so the Process is exiting with error code 1.
I am using OpenSuse tumblebeed. I want a parmanent solution because I am making a application which I will distribute to client and these packages will be installed automatically in user's machine.

You need the Python Development headers.
Install sudo apt-get install python-dev or sudo apt-get install python3-dev first.
Then try again.
Update
Realized you're on OpenSUSE so it'll be sudo zypper install python-dev or sudo zypper install python3-dev

Related

unable to install scrapy using pip on my windows 10 64 bit [duplicate]

This question already has answers here:
SyntaxError in setup.py with pip to install module
(4 answers)
Closed 2 years ago.
This is what i get on cmd when i tried to pip install scrapy...i could'nt put the full code in due to char limits. This is on a windows 10 64 bit pc..kindly help. please help me deal with this problem...cant find any answers that work for me..kindly show steps as i'm new to the python universe..will appreciate the help
C:\Users\Administrator>pip install scrapy
Collecting scrapy
Using cached Scrapy-2.2.0-py2.py3-none-any.whl (241 kB)
Requirement already satisfied: zope.interface>=4.1.3 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from scrapy) (5.1.0)
Requirement already satisfied: w3lib>=1.17.0 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from scrapy) (1.22.0)
Requirement already satisfied: pyOpenSSL>=16.2.0 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from scrapy) (19.1.0)
Requirement already satisfied: PyDispatcher>=2.0.5 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from scrapy) (2.0.5)
Requirement already satisfied: itemadapter>=0.1.0 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from scrapy) (0.1.0)
Requirement already satisfied: cssselect>=0.9.1 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from scrapy) (1.1.0)
Requirement already satisfied: lxml>=3.5.0 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from scrapy) (4.5.1)
Requirement already satisfied: cryptography>=2.0 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from scrapy) (2.9.2)
Requirement already satisfied: queuelib>=1.4.2 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from scrapy) (1.5.0)
Requirement already satisfied: service-identity>=16.0.0 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from scrapy) (18.1.0)
Requirement already satisfied: protego>=0.1.15 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from scrapy) (0.1.16)
Collecting Twisted>=17.9.0
Using cached Twisted-20.3.0.tar.bz2 (3.1 MB)
Requirement already satisfied: parsel>=1.5.0 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from scrapy) (1.6.0)
Requirement already satisfied: setuptools in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from zope.interface>=4.1.3->scrapy) (47.3.1)
Requirement already satisfied: six>=1.4.1 in c:\users\administrator\appdata\roaming\python\python38\site-packages (from w3lib>=1.17.0->scrapy) (1.15.0)
Requirement already satisfied: cffi!=1.11.3,>=1.8 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from cryptography>=2.0->scrapy) (1.14.0)
Requirement already satisfied: pyasn1-modules in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from service-identity>=16.0.0->scrapy) (0.2.8)
Requirement already satisfied: pyasn1 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from service-identity>=16.0.0->scrapy) (0.4.8)
Requirement already satisfied: attrs>=16.0.0 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from service-identity>=16.0.0->scrapy) (19.3.0)
Requirement already satisfied: constantly>=15.1 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from Twisted>=17.9.0->scrapy) (15.1.0)
Requirement already satisfied: incremental>=16.10.1 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from Twisted>=17.9.0->scrapy) (17.5.0)
Requirement already satisfied: Automat>=0.3.0 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from Twisted>=17.9.0->scrapy) (20.2.0)
Requirement already satisfied: hyperlink>=17.1.1 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from Twisted>=17.9.0->scrapy) (19.0.0)
Requirement already satisfied: PyHamcrest!=1.10.0,>=1.9.0 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from Twisted>=17.9.0->scrapy) (2.0.2)
Requirement already satisfied: pycparser in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from cffi!=1.11.3,>=1.8->cryptography>=2.0->scrapy) (2.20)
Requirement already satisfied: idna>=2.5 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from hyperlink>=17.1.1->Twisted>=17.9.0->scrapy) (2.9)
Using legacy setup.py install for Twisted, since package 'wheel' is not installed.
Installing collected packages: Twisted, scrapy
**Running setup.py install for Twisted ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\administrator\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-_mynyc6t\\Twisted\\setup.py'"'"'; __file__='"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-_mynyc6t\\Twisted\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Administrator\AppData\Local\Temp\pip-record-798owh4i\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\administrator\appdata\local\programs\python\python38\Include\Twisted'
cwd: C:\Users\Administrator\AppData\Local\Temp\pip-install-_mynyc6t\Twisted\
Complete output (955 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\twisted
As mentioned by Daniel here, turtle already comes included with python so you don't need to install it.

Building wheel for mpi4py (setup.py) ... error message while installing stable_baselines

After pulling the last commit of flow-project, I executed green_wave.py with python3.7.4 and then got these errors consecutively.
All these errors happened after executed Running setup.py install for mpi4py ... error command.
Below that, you can see the snippet of error message.
What should i do?
Thank you.
Ulass-MacBook-Pro:stable_baselines ulasbayram$ pip3 install stable_baselines==2.7.0
Collecting stable_baselines==2.7.0
Using cached https://files.pythonhosted.org/packages/52/9f/bbb2122cf2ce0e5f09a33bc35d504b83c05b0896bd46d4b85687c62557f6/stable_baselines-2.7.0-py3-none-any.whl
Requirement already satisfied: joblib in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from stable_baselines==2.7.0) (0.10.3)
Requirement already satisfied: opencv-python in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from stable_baselines==2.7.0) (4.1.0.25)
Requirement already satisfied: cloudpickle>=0.5.5 in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from stable_baselines==2.7.0) (1.2.1)
Requirement already satisfied: pandas in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from stable_baselines==2.7.0) (0.25.0)
Requirement already satisfied: scipy in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from stable_baselines==2.7.0) (1.1.0)
Requirement already satisfied: gym[atari,classic_control]>=0.10.9 in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from stable_baselines==2.7.0) (0.13.1)
Collecting mpi4py (from stable_baselines==2.7.0)
Using cached https://files.pythonhosted.org/packages/04/f5/a615603ce4ab7f40b65dba63759455e3da610d9a155d4d4cece1d8fd6706/mpi4py-3.0.2.tar.gz
Requirement already satisfied: numpy in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from stable_baselines==2.7.0) (1.16.4)
Requirement already satisfied: matplotlib in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from stable_baselines==2.7.0) (3.0.0)
Requirement already satisfied: python-dateutil>=2.6.1 in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from pandas->stable_baselines==2.7.0) (2.7.3)
Requirement already satisfied: pytz>=2017.2 in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from pandas->stable_baselines==2.7.0) (2019.2)
Requirement already satisfied: pyglet<=1.3.2,>=1.2.0 in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from gym[atari,classic_control]>=0.10.9->stable_baselines==2.7.0) (1.3.2)
Requirement already satisfied: six in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from gym[atari,classic_control]>=0.10.9->stable_baselines==2.7.0) (1.11.0)
Requirement already satisfied: Pillow; extra == "atari" in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from gym[atari,classic_control]>=0.10.9->stable_baselines==2.7.0) (6.1.0)
Requirement already satisfied: atari-py~=0.2.0; extra == "atari" in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from gym[atari,classic_control]>=0.10.9->stable_baselines==2.7.0) (0.2.6)
Requirement already satisfied: cycler>=0.10 in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from matplotlib->stable_baselines==2.7.0) (0.10.0)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from matplotlib->stable_baselines==2.7.0) (2.4.2)
Requirement already satisfied: kiwisolver>=1.0.1 in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from matplotlib->stable_baselines==2.7.0) (1.1.0)
Requirement already satisfied: future in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from pyglet<=1.3.2,>=1.2.0->gym[atari,classic_control]>=0.10.9->stable_baselines==2.7.0) (0.17.1)
Requirement already satisfied: setuptools in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from kiwisolver>=1.0.1->matplotlib->stable_baselines==2.7.0) (41.0.1)
Building wheels for collected packages: mpi4py
Building wheel for mpi4py (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Users/ulasbayram/Detecon/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/y9/0xpl6pfx3cq9x9j9dzkgl22m0000gn/T/pip-install-5qgh61eu/mpi4py/setup.py'"'"'; __file__='"'"'/private/var/folders/y9/0xpl6pfx3cq9x9j9dzkgl22m0000gn/T/pip-install-5qgh61eu/mpi4py/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/y9/0xpl6pfx3cq9x9j9dzkgl22m0000gn/T/pip-wheel-vy49j_1r --python-tag cp37
cwd: /private/var/folders/y9/0xpl6pfx3cq9x9j9dzkgl22m0000gn/T/pip-install-5qgh61eu/mpi4py/
Complete output (126 lines):
running bdist_wheel
running build
running build_src
running build_py
creating build
creating build/lib.macosx-10.14-x86_64-3.7
creating build/lib.macosx-10.14-x86_64-3.7/mpi4py
copying src/mpi4py/run.py -> build/lib.macosx-10.14-x86_64-3.7/mpi4py
copying src/mpi4py/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/mpi4py
copying src/mpi4py/bench.py -> build/lib.macosx-10.14-x86_64-3.7/mpi4py
copying src/mpi4py/__main__.py -> build/lib.macosx-10.14-x86_64-3.7/mpi4py
creating build/lib.macosx-10.14-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/_base.py -> build/lib.macosx-10.14-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/server.py -> build/lib.macosx-10.14-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/pool.py -> build/lib.macosx-10.14-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/aplus.py -> build/lib.macosx-10.14-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/__main__.py -> build/lib.macosx-10.14-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/_lib.py -> build/lib.macosx-10.14-x86_64-3.7/mpi4py/futures
copying src/mpi4py/__init__.pxd -> build/lib.macosx-10.14-x86_64-3.7/mpi4py
copying src/mpi4py/libmpi.pxd -> build/lib.macosx-10.14-x86_64-3.7/mpi4py
copying src/mpi4py/MPI.pxd -> build/lib.macosx-10.14-x86_64-3.7/mpi4py
creating build/lib.macosx-10.14-x86_64-3.7/mpi4py/include
creating build/lib.macosx-10.14-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.MPI.h -> build/lib.macosx-10.14-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.MPI_api.h -> build/lib.macosx-10.14-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.h -> build/lib.macosx-10.14-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.i -> build/lib.macosx-10.14-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi.pxi -> build/lib.macosx-10.14-x86_64-3.7/mpi4py/include/mpi4py
running build_clib
MPI configuration: [mpi] from 'mpi.cfg'
checking for library 'lmpe' ...
.
.
.
ERROR: Command errored out with exit status 1: /Users/ulasbayram/Detecon/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/y9/0xpl6pfx3cq9x9j9dzkgl22m0000gn/T/pip-install-5qgh61eu/mpi4py/setup.py'"'"'; __file__='"'"'/private/var/folders/y9/0xpl6pfx3cq9x9j9dzkgl22m0000gn/T/pip-install-5qgh61eu/mpi4py/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/y9/0xpl6pfx3cq9x9j9dzkgl22m0000gn/T/pip-record-xbd7wnrr/install-record.txt --single-version-externally-managed --compile --install-headers /Users/ulasbayram/Detecon/bin/../include/site/python3.7/mpi4py Check the logs for full command output.
did you make sure to follow the installation instructions for stable baselines before running the pip install? That is, did you run 'brew install cmake openmpi' before running this command? The error could be due to you not having an installation of MPI.

Not able to install textract using !pip install textract

I have been trying to install textract using command:
!pip install textract, but getting below errors:
Collecting textract
Requirement already satisfied: docx2txt==0.6 in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from textract) (0.6)
Requirement already satisfied: argcomplete==1.8.2 in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from textract) (1.8.2)
Collecting six==1.10.0 (from textract)
Using cached https://files.pythonhosted.org/packages/c8/0a/b6723e1bc4c516cb687841499455a8505b44607ab535be01091c0f24f079/six-1.10.0-py2.py3-none-any.whl
Collecting EbookLib==0.15 (from textract)
Collecting pocketsphinx==0.1.3 (from textract)
Using cached https://files.pythonhosted.org/packages/93/5f/a968e5d53d25e32deb78c3e169fd8612ecf53cc76e32cb40e19be35696af/pocketsphinx-0.1.3.tar.bz2
Requirement already satisfied: beautifulsoup4==4.5.3 in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from textract) (4.5.3)
Requirement already satisfied: SpeechRecognition==3.6.3 in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from textract) (3.6.3)
Requirement already satisfied: chardet==2.3.0 in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from textract) (2.3.0)
Requirement already satisfied: python-pptx==0.6.5 in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from textract) (0.6.5)
Requirement already satisfied: xlrd==1.0.0 in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from textract) (1.0.0)
Requirement already satisfied: lxml in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from EbookLib==0.15->textract) (4.3.2)
Requirement already satisfied: XlsxWriter>=0.5.7 in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from python-pptx==0.6.5->textract) (1.1.5)
Requirement already satisfied: Pillow>=2.6.1 in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from python-pptx==0.6.5->textract) (5.3.0)
Building wheels for collected packages: pocketsphinx
Building wheel for pocketsphinx (setup.py) ... error
Complete output from command /home/UGI/akedia/.conda/envs/at3deploy/bin/python -u -c "import setuptools, tokenize;__file__='/backup/mltmp/pip-install-k3hazve3/pocketsphinx/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /backup/mltmp/pip-wheel-7t5e7pu4 --python-tag cp36:
running bdist_wheel
running build_ext
building 'sphinxbase._ad' extension
swigging swig/sphinxbase/ad.i to swig/sphinxbase/ad_wrap.c
swig -python -modern -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -Ideps/sphinxbase/swig -outdir sphinxbase -o swig/sphinxbase/ad_wrap.c swig/sphinxbase/ad.i
unable to execute 'swig': No such file or directory
error: command 'swig' failed with exit status 1
----------------------------------------
Failed building wheel for pocketsphinx
Running setup.py clean for pocketsphinx
Failed to build pocketsphinx
spacy 2.0.12 has requirement regex==2017.4.5, but you'll have regex 2018.7.11 which is incompatible.
Installing collected packages: six, EbookLib, pocketsphinx, textract
Running setup.py install for pocketsphinx ... error
Complete output from command /home/UGI/akedia/.conda/envs/at3deploy/bin/python -u -c "import setuptools, tokenize;__file__='/backup/mltmp/pip-install-k3hazve3/pocketsphinx/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /backup/mltmp/pip-record-ws03agmf/install-record.txt --single-version-externally-managed --compile:
running install
running build_ext
building 'sphinxbase._ad' extension
swigging swig/sphinxbase/ad.i to swig/sphinxbase/ad_wrap.c
swig -python -modern -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -Ideps/sphinxbase/swig -outdir sphinxbase -o swig/sphinxbase/ad_wrap.c swig/sphinxbase/ad.i
unable to execute 'swig': No such file or directory
error: command 'swig' failed with exit status 1
----------------------------------------
Command "/home/UGI/akedia/.conda/envs/at3deploy/bin/python -u -c "import setuptools, tokenize;__file__='/backup/mltmp/pip-install-k3hazve3/pocketsphinx/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /backup/mltmp/pip-record-ws03agmf/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /backup/mltmp/pip-install-k3hazve3/pocketsphinx/
As mentioned here, you cannot directly install it as pip install tesseract you will need to execute the commands based on your os, now based on your directory architecture I am assuming that it is a Linux system, and since you used !pip I believe you are using Ipyhton notebook or jupyter shell to install this,
In which case you will need to run it in two parts, first run
!apt-get install python-dev libxml2-dev libxslt1-dev antiword unrtf poppler-utils pstotext tesseract-ocr flac ffmpeg lame libmad0 libsox-fmt-mp3 sox libjpeg-dev swig
And then run
!apt-get install libpulse-dev
!pip install textract
And you get, Apparently you also need libpulse-dev which is not mentioned in the official installation guide.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libpulse-mainloop-glib0
The following NEW packages will be installed:
libpulse-dev libpulse-mainloop-glib0
0 upgraded, 2 newly installed, 0 to remove and 10 not upgraded.
Need to get 104 kB of archives.
After this operation, 714 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpulse-mainloop-glib0 amd64 1:11.1-1ubuntu7.2 [22.1 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpulse-dev amd64 1:11.1-1ubuntu7.2 [81.5 kB]
Fetched 104 kB in 1s (192 kB/s)
Selecting previously unselected package libpulse-mainloop-glib0:amd64.
(Reading database ... 119263 files and directories currently installed.)
Preparing to unpack .../libpulse-mainloop-glib0_1%3a11.1-1ubuntu7.2_amd64.deb ...
Unpacking libpulse-mainloop-glib0:amd64 (1:11.1-1ubuntu7.2) ...
Selecting previously unselected package libpulse-dev:amd64.
Preparing to unpack .../libpulse-dev_1%3a11.1-1ubuntu7.2_amd64.deb ...
Unpacking libpulse-dev:amd64 (1:11.1-1ubuntu7.2) ...
Setting up libpulse-mainloop-glib0:amd64 (1:11.1-1ubuntu7.2) ...
Setting up libpulse-dev:amd64 (1:11.1-1ubuntu7.2) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Collecting textract
Requirement already satisfied: docx2txt==0.6 in /usr/local/lib/python3.6/dist-packages (from textract) (0.6)
Requirement already satisfied: argcomplete==1.8.2 in /usr/local/lib/python3.6/dist-packages (from textract) (1.8.2)
Requirement already satisfied: EbookLib==0.15 in /usr/local/lib/python3.6/dist-packages (from textract) (0.15)
Requirement already satisfied: python-pptx==0.6.5 in /usr/local/lib/python3.6/dist-packages (from textract) (0.6.5)
Requirement already satisfied: six==1.10.0 in /usr/local/lib/python3.6/dist-packages (from textract) (1.10.0)
Requirement already satisfied: beautifulsoup4==4.5.3 in /usr/local/lib/python3.6/dist-packages (from textract) (4.5.3)
Requirement already satisfied: chardet==2.3.0 in /usr/local/lib/python3.6/dist-packages (from textract) (2.3.0)
Requirement already satisfied: xlrd==1.0.0 in /usr/local/lib/python3.6/dist-packages (from textract) (1.0.0)
Collecting pocketsphinx==0.1.3 (from textract)
Using cached https://files.pythonhosted.org/packages/93/5f/a968e5d53d25e32deb78c3e169fd8612ecf53cc76e32cb40e19be35696af/pocketsphinx-0.1.3.tar.bz2
Requirement already satisfied: SpeechRecognition==3.6.3 in /usr/local/lib/python3.6/dist-packages (from textract) (3.6.3)
Requirement already satisfied: lxml in /usr/local/lib/python3.6/dist-packages (from EbookLib==0.15->textract) (4.2.6)
Requirement already satisfied: Pillow>=2.6.1 in /usr/local/lib/python3.6/dist-packages (from python-pptx==0.6.5->textract) (4.1.1)
Requirement already satisfied: XlsxWriter>=0.5.7 in /usr/local/lib/python3.6/dist-packages (from python-pptx==0.6.5->textract) (1.1.5)
Requirement already satisfied: olefile in /usr/local/lib/python3.6/dist-packages (from Pillow>=2.6.1->python-pptx==0.6.5->textract) (0.46)
Building wheels for collected packages: pocketsphinx
Building wheel for pocketsphinx (setup.py) ... done
Stored in directory: /root/.cache/pip/wheels/38/80/4f/ddc3e8c2b788f2c7f1d625ae870f6bafd3038ff04a3445a2f8
Successfully built pocketsphinx
Installing collected packages: pocketsphinx, textract
Successfully installed pocketsphinx-0.1.3 textract-1.6.1

How to fix clang 'invalid deployment target' error when installing bcolz

I want to install zipline in my Mac OS X Mojave (0.14.2 (18C54)) using Python 3.5.4, but the installation fails every time the compiler tries to install bcolz through pip install.
I've already tried to re-install Xcode to the latest version (10.1) and also download the latest Command Line Tools from the official Apple Developer website since the command xcode-select -all is no longer supported. As far as I know the header files in Xcode.app/Contents/Developer/Files are intact so there's no need to import them from a previous version which I don't have or search them elsewhere over the Internet.
Here is the code from my virtual environment. Typically I would get an error that it cannot locate header files that's why I run it with specifying CFLAGS
(zipline) ~ $CXXFLAGS="-std=libc++" CFLAGS="-std=libc++" pip install zipline
Collecting zipline
Requirement already satisfied: bottleneck>=1.0.0 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (1.0.0)
Requirement already satisfied: Mako>=1.0.1 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (1.0.7)
Requirement already satisfied: sortedcontainers>=1.4.4 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (2.1.0)
Requirement already satisfied: pip>=7.1.0 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (18.1)
Requirement already satisfied: requests-file>=1.4.1 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (1.4.1)
Requirement already satisfied: pandas<=0.22,>=0.18.1 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (0.18.1)
Requirement already satisfied: sqlalchemy>=1.0.8 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (1.2.15)
Requirement already satisfied: Logbook>=0.12.5 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (0.12.5)
Requirement already satisfied: patsy>=0.4.0 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (0.4.0)
Requirement already satisfied: statsmodels>=0.6.1 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (0.6.1)
Requirement already satisfied: six>=1.10.0 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (1.10.0)
Requirement already satisfied: empyrical>=0.5.0 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (0.5.0)
Requirement already satisfied: requests>=2.9.1 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (2.20.1)
Requirement already satisfied: numexpr>=2.6.1 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (2.6.1)
Requirement already satisfied: python-dateutil>=2.4.2 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (2.4.2)
Requirement already satisfied: alembic>=0.7.7 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (1.0.5)
Requirement already satisfied: pandas-datareader>=0.2.1 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (0.2.1)
Collecting bcolz<1,>=0.12.1 (from zipline)
Using cached https://files.pythonhosted.org/packages/6c/8b/1ffa01f872cac36173c5eb95b58c01040d8d25f1b242c48577f4104cd3ab/bcolz-0.12.1.tar.gz
Requirement already satisfied: click>=4.0.0 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (7.0)
Requirement already satisfied: MarkupSafe>=0.23 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (1.1.0)
Requirement already satisfied: cyordereddict>=0.2.2 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (0.2.2)
Requirement already satisfied: setuptools>18.0 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (40.6.3)
Requirement already satisfied: intervaltree>=2.1.0 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (3.0.2)
Requirement already satisfied: lru-dict>=1.1.4 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (1.1.6)
Requirement already satisfied: numpy>=1.11.1 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (1.15.4)
Requirement already satisfied: networkx<2.0,>=1.9.1 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (1.9.1)
Requirement already satisfied: toolz>=0.8.2 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (0.9.0)
Requirement already satisfied: trading-calendars>=1.0.1 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (1.6.1)
Requirement already satisfied: pytz>=2016.4 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (2018.5)
Requirement already satisfied: contextlib2>=0.4.0 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (0.4.0)
Requirement already satisfied: Cython>=0.25.2 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (0.25.2)
Requirement already satisfied: tables>=3.3.0 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (3.4.4)
Requirement already satisfied: decorator>=4.0.0 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (4.0.0)
Requirement already satisfied: scipy>=0.17.1 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (0.17.1)
Requirement already satisfied: multipledispatch>=0.4.8 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (0.6.0)
Requirement already satisfied: urllib3<1.25,>=1.21.1 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from requests>=2.9.1->zipline) (1.23)
Requirement already satisfied: certifi>=2017.4.17 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from requests>=2.9.1->zipline) (2018.8.24)
Requirement already satisfied: idna<2.8,>=2.5 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from requests>=2.9.1->zipline) (2.7)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from requests>=2.9.1->zipline) (3.0.4)
Requirement already satisfied: python-editor>=0.3 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from alembic>=0.7.7->zipline) (1.0.3)
Building wheels for collected packages: bcolz
Running setup.py bdist_wheel for bcolz ... error
Complete output from command /Users/USERNAME/.virtualenvs/zipline/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/5k/2m1pt8j91nbfjjjcjvrlxjpc0000gn/T/pip-install-itawco06/bcolz/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /private/var/folders/5k/2m1pt8j91nbfjjjcjvrlxjpc0000gn/T/pip-wheel-1f24zwoi --python-tag cp35:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.6-intel-3.5
creating build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/py2help_tests.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/version.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/toplevel.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/ctable.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/__init__.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/utils.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/chunked_eval.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/defaults.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/attrs.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/py2help.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/arrayprint.py -> build/lib.macosx-10.6-intel-3.5/bcolz
creating build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/test_ndcarray.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/test_carray_objects.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/test_attrs.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/__init__.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/all.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/common.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/test_queries.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/test_ctable.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/test_carray.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/carray_ext.pxd -> build/lib.macosx-10.6-intel-3.5/bcolz
running build_ext
skipping 'bcolz/carray_ext.c' Cython extension (up-to-date)
building 'bcolz.carray_ext' extension
creating build/temp.macosx-10.6-intel-3.5
creating build/temp.macosx-10.6-intel-3.5/bcolz
creating build/temp.macosx-10.6-intel-3.5/c-blosc
creating build/temp.macosx-10.6-intel-3.5/c-blosc/blosc
creating build/temp.macosx-10.6-intel-3.5/c-blosc/internal-complibs
creating build/temp.macosx-10.6-intel-3.5/c-blosc/internal-complibs/lz4-r119
creating build/temp.macosx-10.6-intel-3.5/c-blosc/internal-complibs/snappy-1.1.1
creating build/temp.macosx-10.6-intel-3.5/c-blosc/internal-complibs/zlib-1.2.8
/usr/bin/clang -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -std=libc++ -DHAVE_LZ4=1 -DHAVE_SNAPPY=1 -DHAVE_ZLIB=1 -Ibcolz -Ic-blosc/blosc -Ic-blosc/internal-complibs/snappy-1.1.1 -Ic-blosc/internal-complibs/lz4-r119 -Ic-blosc/internal-complibs/zlib-1.2.8 -I/Users/USERNAME/.virtualenvs/zipline/lib/python3.5/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/3.5/include/python3.5m -c bcolz/carray_ext.c -o build/temp.macosx-10.6-intel-3.5/bcolz/carray_ext.o -std=libc++
error: invalid value 'libc++' in '-std=libc++'
note: use 'c89', 'c90', or 'iso9899:1990' for 'ISO C 1990' standard
note: use 'iso9899:199409' for 'ISO C 1990 with amendment 1' standard
note: use 'gnu89' or 'gnu90' for 'ISO C 1990 with GNU extensions' standard
note: use 'c99' or 'iso9899:1999' for 'ISO C 1999' standard
note: use 'gnu99' for 'ISO C 1999 with GNU extensions' standard
note: use 'c11' or 'iso9899:2011' for 'ISO C 2011' standard
note: use 'gnu11' for 'ISO C 2011 with GNU extensions' standard
note: use 'c17' or 'iso9899:2017' for 'ISO C 2017' standard
note: use 'gnu17' for 'ISO C 2017 with GNU extensions' standard
error: command '/usr/bin/clang' failed with exit status 1
----------------------------------------
Failed building wheel for bcolz
Running setup.py clean for bcolz
Failed to build bcolz
Installing collected packages: bcolz, zipline
Running setup.py install for bcolz ... error
Complete output from command /Users/USERNAME/.virtualenvs/zipline/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/5k/2m1pt8j91nbfjjjcjvrlxjpc0000gn/T/pip-install-itawco06/bcolz/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/5k/2m1pt8j91nbfjjjcjvrlxjpc0000gn/T/pip-record-a3h6zh7b/install-record.txt --single-version-externally-managed --compile --install-headers /Users/USERNAME/.virtualenvs/zipline/bin/../include/site/python3.5/bcolz:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.6-intel-3.5
creating build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/py2help_tests.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/version.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/toplevel.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/ctable.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/__init__.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/utils.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/chunked_eval.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/defaults.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/attrs.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/py2help.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/arrayprint.py -> build/lib.macosx-10.6-intel-3.5/bcolz
creating build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/test_ndcarray.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/test_carray_objects.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/test_attrs.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/__init__.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/all.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/common.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/test_queries.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/test_ctable.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/test_carray.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/carray_ext.pxd -> build/lib.macosx-10.6-intel-3.5/bcolz
running build_ext
skipping 'bcolz/carray_ext.c' Cython extension (up-to-date)
building 'bcolz.carray_ext' extension
creating build/temp.macosx-10.6-intel-3.5
creating build/temp.macosx-10.6-intel-3.5/bcolz
creating build/temp.macosx-10.6-intel-3.5/c-blosc
creating build/temp.macosx-10.6-intel-3.5/c-blosc/blosc
creating build/temp.macosx-10.6-intel-3.5/c-blosc/internal-complibs
creating build/temp.macosx-10.6-intel-3.5/c-blosc/internal-complibs/lz4-r119
creating build/temp.macosx-10.6-intel-3.5/c-blosc/internal-complibs/snappy-1.1.1
creating build/temp.macosx-10.6-intel-3.5/c-blosc/internal-complibs/zlib-1.2.8
/usr/bin/clang -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -std=libc++ -DHAVE_LZ4=1 -DHAVE_SNAPPY=1 -DHAVE_ZLIB=1 -Ibcolz -Ic-blosc/blosc -Ic-blosc/internal-complibs/snappy-1.1.1 -Ic-blosc/internal-complibs/lz4-r119 -Ic-blosc/internal-complibs/zlib-1.2.8 -I/Users/USERNAME/.virtualenvs/zipline/lib/python3.5/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/3.5/include/python3.5m -c bcolz/carray_ext.c -o build/temp.macosx-10.6-intel-3.5/bcolz/carray_ext.o -std=libc++
error: invalid value 'libc++' in '-std=libc++'
note: use 'c89', 'c90', or 'iso9899:1990' for 'ISO C 1990' standard
note: use 'iso9899:199409' for 'ISO C 1990 with amendment 1' standard
note: use 'gnu89' or 'gnu90' for 'ISO C 1990 with GNU extensions' standard
note: use 'c99' or 'iso9899:1999' for 'ISO C 1999' standard
note: use 'gnu99' for 'ISO C 1999 with GNU extensions' standard
note: use 'c11' or 'iso9899:2011' for 'ISO C 2011' standard
note: use 'gnu11' for 'ISO C 2011 with GNU extensions' standard
note: use 'c17' or 'iso9899:2017' for 'ISO C 2017' standard
note: use 'gnu17' for 'ISO C 2017 with GNU extensions' standard
error: command '/usr/bin/clang' failed with exit status 1
----------------------------------------
Command "/Users/USERNAME/.virtualenvs/zipline/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/5k/2m1pt8j91nbfjjjcjvrlxjpc0000gn/T/pip-install-itawco06/bcolz/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/5k/2m1pt8j91nbfjjjcjvrlxjpc0000gn/T/pip-record-a3h6zh7b/install-record.txt --single-version-externally-managed --compile --install-headers /Users/USERNAME/.virtualenvs/zipline/bin/../include/site/python3.5/bcolz" failed with error code 1 in /private/var/folders/5k/2m1pt8j91nbfjjjcjvrlxjpc0000gn/T/pip-install-itawco06/bcolz/
and the list of packages installed
(zipline) ~ $pip list
Package Version
----------------- ---------
alembic 1.0.5
Bottleneck 1.0.0
ccxt 1.18.110
certifi 2018.8.24
chardet 3.0.4
Click 7.0
contextlib2 0.4.0
cyordereddict 0.2.2
Cython 0.25.2
decorator 4.0.0
empyrical 0.5.0
idna 2.7
intervaltree 3.0.2
Logbook 0.12.5
lru-dict 1.1.6
Mako 1.0.7
MarkupSafe 1.1.0
multipledispatch 0.6.0
networkx 1.9.1
numexpr 2.6.1
numpy 1.15.4
pandas 0.18.1
pandas-datareader 0.2.1
patsy 0.4.0
pip 18.1
python-dateutil 2.4.2
python-editor 1.0.3
pytz 2018.5
requests 2.20.1
requests-file 1.4.1
scipy 0.17.1
setuptools 40.6.3
setuptools-scm 3.1.0
six 1.10.0
sortedcontainers 2.1.0
SQLAlchemy 1.2.15
statsmodels 0.6.1
tables 3.4.4
toolz 0.9.0
trading-calendars 1.6.1
urllib3 1.23
wheel 0.32.3
The optimal outcome would be to get the entire package running since I've been searching the web for over a week and tried every kind of solution on different python versions.
Any help would be greatly appreciated.

ModuleNotFoundError using Google Cloud Speech

Edited:
I installed Google Cloud Speech by using the followning command:
pip install --upgrade google-cloud-speech
when I run Python Program to convert Audio into Text using Python3, I get an error:
Traceback (most recent call last):
File "/home/prateek/Google Drive/projects/linuxAI/src/linuxAI.py", line 2, in <module>
from google.cloud import speech
File "/usr/lib/python3.6/site-packages/google/cloud/speech/__init__.py", line 22, in <module>
from google.cloud.speech.client import Client
File "/usr/lib/python3.6/site-packages/google/cloud/speech/client.py", line 22, in <module>
from google.cloud.client import Client as BaseClient
ModuleNotFoundError: No module named 'google.cloud.client'
But If I run the same program using Python(Python2), I get the correct output.
I want to run the program using Python3. I am using OpenSuse Tumblebeed.
So, I tried the following commands to install google-cloud:
sudo pip install --upgrade google-cloud
sudo pip3 install --upgrade google-cloud
sudo pip3.6 install --upgrade google-cloud
But I am getting the following error by all these commands:
Requirement already satisfied: google-cloud in /usr/lib/python3.6/si
te-packages/google_cloud-0.32.1.dev1-py3.6.egg
Requirement already satisfied: google-api-core<0.2.0dev,>=0.1.2 in /
usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-bigquery<0.29dev,>=0.28.
0 in /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-bigquery-datatransfer<0.
2dev,>=0.1.0 in /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-bigtable<0.29dev,>=0.28.
1 in /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-container<0.2dev,>=0.1.0
in /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-core<0.29dev,>=0.28.0 in
/usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-datastore<1.5dev,>=1.4.0
in /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-dns<0.29dev,>=0.28.0 in
/usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-error-reporting<0.29dev,
>=0.28.0 in /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-firestore<0.29dev,>=0.28
.0 in /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-language<1.1dev,>=1.0.0
in /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-logging<1.5dev,>=1.4.0 i
n /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-monitoring<0.29dev,>=0.2
8.0 in /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-pubsub<0.31dev,>=0.30.0
in /usr/lib/python3.6/site-packages/google_cloud_pubsub-0.30.1-py3.6
.egg (from google-cloud)
Requirement already satisfied: google-cloud-resource-manager<0.29dev
,>=0.28.0 in /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-runtimeconfig<0.29dev,>=
0.28.0 in /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-spanner<0.30dev,>=0.29.0
in /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-speech<0.31dev,>=0.30.0
in /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-storage<1.7dev,>=1.6.0 i
n /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-trace<0.18dev,>=0.17.0 i
n /usr/lib/python3.6/site-packages/google_cloud_trace-0.17.0-py3.6.e
gg (from google-cloud)
Requirement already satisfied: google-cloud-translate<1.4dev,>=1.3.0
in /usr/lib/python3.6/site-packages/google_cloud_translate-1.3.0-py
3.6.egg (from google-cloud)
Requirement already satisfied: google-cloud-videointelligence<1.1dev
,>=1.0.0 in /usr/lib/python3.6/site-packages (from google-cloud)
Requirement already satisfied: google-cloud-vision<0.30dev,>=0.29.0
in /usr/lib/python3.6/site-packages/google_cloud_vision-0.29.0-py3.6
.egg (from google-cloud)
Requirement already satisfied: google-auth<2.0.0dev,>=0.4.0 in /usr/
lib/python3.6/site-packages (from google-api-core<0.2.0dev,>=0.1.2->
google-cloud)
Requirement already satisfied: pytz in /usr/lib/python3.6/site-packa
ges (from google-api-core<0.2.0dev,>=0.1.2->google-cloud)
Requirement already satisfied: googleapis-common-protos<2.0dev,>=1.5
.3 in /usr/lib/python3.6/site-packages (from google-api-core<0.2.0de
v,>=0.1.2->google-cloud)
Requirement already satisfied: requests<3.0.0dev,>=2.18.0 in /usr/li
b/python3.6/site-packages (from google-api-core<0.2.0dev,>=0.1.2->go
ogle-cloud)
Requirement already satisfied: protobuf>=3.0.0 in /usr/lib64/python3
.6/site-packages (from google-api-core<0.2.0dev,>=0.1.2->google-clou
d)
Requirement already satisfied: six>=1.10.0 in /usr/lib/python3.6/sit
e-packages (from google-api-core<0.2.0dev,>=0.1.2->google-cloud)
Requirement already satisfied: setuptools>=34.0.0 in /usr/lib/python
3.6/site-packages (from google-api-core<0.2.0dev,>=0.1.2->google-clo
ud)
Requirement already satisfied: google-resumable-media>=0.2.1 in /usr
/lib/python3.6/site-packages (from google-cloud-bigquery<0.29dev,>=0
.28.0->google-cloud)
Requirement already satisfied: google-gax<0.16dev,>=0.15.7 in /usr/l
ib/python3.6/site-packages (from google-cloud-bigtable<0.29dev,>=0.2
8.1->google-cloud)
Requirement already satisfied: gapic-google-cloud-datastore-v1<0.16d
ev,>=0.15.0 in /usr/lib/python3.6/site-packages (from google-cloud-d
atastore<1.5dev,>=1.4.0->google-cloud)
Requirement already satisfied: gapic-google-cloud-error-reporting-v1
beta1<0.16dev,>=0.15.0 in /usr/lib/python3.6/site-packages (from goo
gle-cloud-error-reporting<0.29dev,>=0.28.0->google-cloud)
Requirement already satisfied: gapic-google-cloud-logging-v2<0.92dev
,>=0.91.0 in /usr/lib/python3.6/site-packages (from google-cloud-log
ging<1.5dev,>=1.4.0->google-cloud)
Requirement already satisfied: grpc-google-iam-v1<0.12dev,>=0.11.1 i
n /usr/lib/python3.6/site-packages (from google-cloud-pubsub<0.31dev
,>=0.30.0->google-cloud)
Collecting psutil<6.0dev,>=5.2.2 (from google-cloud-pubsub<0.31dev,>
=0.30.0->google-cloud)
Using cached psutil-5.4.3.tar.gz
Requirement already satisfied: pyasn1-modules>=0.2.1 in /usr/lib/pyt
hon3.6/site-packages (from google-auth<2.0.0dev,>=0.4.0->google-api-
core<0.2.0dev,>=0.1.2->google-cloud)
Requirement already satisfied: cachetools>=2.0.0 in /usr/lib/python3
.6/site-packages (from google-auth<2.0.0dev,>=0.4.0->google-api-core
<0.2.0dev,>=0.1.2->google-cloud)
Requirement already satisfied: rsa>=3.1.4 in /usr/lib/python3.6/site
-packages (from google-auth<2.0.0dev,>=0.4.0->google-api-core<0.2.0d
ev,>=0.1.2->google-cloud)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /usr/lib/pyt
hon3.6/site-packages (from requests<3.0.0dev,>=2.18.0->google-api-co
re<0.2.0dev,>=0.1.2->google-cloud)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python
3.6/site-packages (from requests<3.0.0dev,>=2.18.0->google-api-core<
0.2.0dev,>=0.1.2->google-cloud)
Requirement already satisfied: idna<2.7,>=2.5 in /usr/lib/python3.6/
site-packages (from requests<3.0.0dev,>=2.18.0->google-api-core<0.2.
0dev,>=0.1.2->google-cloud)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/lib/pyt
hon3.6/site-packages (from requests<3.0.0dev,>=2.18.0->google-api-co
re<0.2.0dev,>=0.1.2->google-cloud)
Requirement already satisfied: dill<0.3dev,>=0.2.5 in /usr/lib/pytho
n3.6/site-packages (from google-gax<0.16dev,>=0.15.7->google-cloud-b
igtable<0.29dev,>=0.28.1->google-cloud)
Requirement already satisfied: future<0.17dev,>=0.16.0 in /usr/lib/p
ython3.6/site-packages (from google-gax<0.16dev,>=0.15.7->google-clo
ud-bigtable<0.29dev,>=0.28.1->google-cloud)
Requirement already satisfied: ply==3.8 in /usr/lib/python3.6/site-p
ackages (from google-gax<0.16dev,>=0.15.7->google-cloud-bigtable<0.2
9dev,>=0.28.1->google-cloud)
Requirement already satisfied: grpcio<2.0dev,>=1.0.2 in /usr/lib64/p
ython3.6/site-packages (from google-gax<0.16dev,>=0.15.7->google-clo
ud-bigtable<0.29dev,>=0.28.1->google-cloud)
Requirement already satisfied: oauth2client<4.0dev,>=2.0.0 in /usr/l
ib/python3.6/site-packages (from gapic-google-cloud-datastore-v1<0.1
6dev,>=0.15.0->google-cloud-datastore<1.5dev,>=1.4.0->google-cloud)
Requirement already satisfied: proto-google-cloud-datastore-v1[grpc]
<0.91dev,>=0.90.3 in /usr/lib/python3.6/site-packages (from gapic-go
ogle-cloud-datastore-v1<0.16dev,>=0.15.0->google-cloud-datastore<1.5
dev,>=1.4.0->google-cloud)
Requirement already satisfied: proto-google-cloud-error-reporting-v1
beta1[grpc]<0.16dev,>=0.15.3 in /usr/lib/python3.6/site-packages (fr
om gapic-google-cloud-error-reporting-v1beta1<0.16dev,>=0.15.0->goog
le-cloud-error-reporting<0.29dev,>=0.28.0->google-cloud)
Requirement already satisfied: proto-google-cloud-logging-v2[grpc]<0
.92dev,>=0.91.3 in /usr/lib/python3.6/site-packages (from gapic-goog
le-cloud-logging-v2<0.92dev,>=0.91.0->google-cloud-logging<1.5dev,>=
1.4.0->google-cloud)
Requirement already satisfied: pyasn1<0.5.0,>=0.4.1 in /usr/lib/pyth
on3.6/site-packages (from pyasn1-modules>=0.2.1->google-auth<2.0.0de
v,>=0.4.0->google-api-core<0.2.0dev,>=0.1.2->google-cloud)
Requirement already satisfied: httplib2>=0.9.1 in /usr/lib/python3.6
/site-packages (from oauth2client<4.0dev,>=2.0.0->gapic-google-cloud
-datastore-v1<0.16dev,>=0.15.0->google-cloud-datastore<1.5dev,>=1.4.
0->google-cloud)
Installing collected packages: psutil
Running setup.py install for psutil ... error
Complete output from command /usr/bin/python3 -u -c "import setu
ptools, tokenize;__file__='/tmp/pip-build-1mt8_94q/psutil/setup.py';
f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\
r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install
--record /tmp/pip-co20my3o-record/install-record.txt --single-versi
on-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/psutil
copying psutil/_exceptions.py -> build/lib.linux-x86_64-3.6/psut
il
copying psutil/_psposix.py -> build/lib.linux-x86_64-3.6/psutil
copying psutil/_psbsd.py -> build/lib.linux-x86_64-3.6/psutil
copying psutil/_psaix.py -> build/lib.linux-x86_64-3.6/psutil
copying psutil/_pssunos.py -> build/lib.linux-x86_64-3.6/psutil
copying psutil/_pslinux.py -> build/lib.linux-x86_64-3.6/psutil
copying psutil/_common.py -> build/lib.linux-x86_64-3.6/psutil
copying psutil/__init__.py -> build/lib.linux-x86_64-3.6/psutil
copying psutil/_psosx.py -> build/lib.linux-x86_64-3.6/psutil
copying psutil/_compat.py -> build/lib.linux-x86_64-3.6/psutil
copying psutil/_pswindows.py -> build/lib.linux-x86_64-3.6/psuti
l
creating build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/__main__.py -> build/lib.linux-x86_64-3.6/p
sutil/tests
copying psutil/tests/test_bsd.py -> build/lib.linux-x86_64-3.6/p
sutil/tests
copying psutil/tests/test_contracts.py -> build/lib.linux-x86_64
-3.6/psutil/tests
copying psutil/tests/test_aix.py -> build/lib.linux-x86_64-3.6/p
sutil/tests
copying psutil/tests/test_memory_leaks.py -> build/lib.linux-x86
_64-3.6/psutil/tests
copying psutil/tests/test_connections.py -> build/lib.linux-x86_
64-3.6/psutil/tests
copying psutil/tests/test_system.py -> build/lib.linux-x86_64-3.
6/psutil/tests
copying psutil/tests/test_linux.py -> build/lib.linux-x86_64-3.6
/psutil/tests
copying psutil/tests/test_misc.py -> build/lib.linux-x86_64-3.6/
psutil/tests
copying psutil/tests/__init__.py -> build/lib.linux-x86_64-3.6/p
sutil/tests
copying psutil/tests/test_osx.py -> build/lib.linux-x86_64-3.6/p
sutil/tests
copying psutil/tests/test_process.py -> build/lib.linux-x86_64-3
.6/psutil/tests
copying psutil/tests/test_windows.py -> build/lib.linux-x86_64-3
.6/psutil/tests
copying psutil/tests/test_posix.py -> build/lib.linux-x86_64-3.6
/psutil/tests
copying psutil/tests/test_sunos.py -> build/lib.linux-x86_64-3.6
/psutil/tests
copying psutil/tests/test_unicode.py -> build/lib.linux-x86_64-3
.6/psutil/tests
running build_ext
building 'psutil._psutil_linux' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/psutil
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -fmessag
e-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fsta
ck-protector-strong -funwind-tables -fasynchronous-unwind-tables -g
-DOPENSSL_LOAD_CONF -fmessage-length=0 -grecord-gcc-switches -O2 -Wa
ll -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fas
ynchronous-unwind-tables -g -fmessage-length=0 -grecord-gcc-switches
-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tab
les -fasynchronous-unwind-tables -g -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_
VERSION=543 -DPSUTIL_LINUX=1 -I/usr/include/python3.6m -c psutil/_ps
util_common.c -o build/temp.linux-x86_64-3.6/psutil/_psutil_common.o
psutil/_psutil_common.c:9:10: fatal error: Python.h: No such fil
e or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file_
_='/tmp/pip-build-1mt8_94q/psutil/setup.py';f=getattr(tokenize, 'ope
n', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();ex
ec(compile(code, __file__, 'exec'))" install --record /tmp/pip-co20m
y3o-record/install-record.txt --single-version-externally-managed --
compile" failed with error code 1 in /tmp/pip-build-1mt8_94q/psutil/
I think GCC is trying to find python.h so the process is exiting with error code 1.
I'm not familiar with OpenSuse but, as you describe it, I believe python3 cannot find google-cloud-speech package because "pip" will only make it available for your python2 binary. The solution (on debian) should involve:
Installing pip3 (if you haven't already):
sudo apt-get install python3-pip
Use pip3 to install Google Cloud Speech
sudo pip3 install --upgrade google-cloud-speech

Categories