On using command pip install watson-machine-learning-client
The terminal throws error, here is the output of terminal:
pip install watson-machine-learning-client
Collecting watson-machine-learning-client
Using cached https://files.pythonhosted.org/packages/7a/ea/75de2fe2373cb3d2f0c7342b35956c4df62fce5a312cfd652a339bfb97a0/watson_machine_learning_client-1.0.357.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/l0/8fv181bn3nb6fdrnyk87j7qc0000gn/T/pip-install-oRyoix/watson-machine-learning-client/setup.py", line 30, in <module>
with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f:
TypeError: 'encoding' is an invalid keyword argument for this function
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/l0/8fv181bn3nb6fdrnyk87j7qc0000gn/T/pip-install-oRyoix/watson-machine-learning-client/
you are using python 2 to install the package, which is incorrectly listed as supporting python 2 on PyPi. As you can see on the official homepage (Requirements section):
Watson Machine Learning service instance, you can create instance using this link. Only Python 3.5 or newer is supported.
You can try backporting the code to python 2, but I would rather recommend using pyhton 3 here.
Related
I have installed Python 3 via Anaconda 3 to my PC which runs Windows10.
In trying to install pattern I get an error message:
(base) C:\Users\Alienware\Documents>pip install pattern
Collecting pattern
Using cached https://files.pythonhosted.org/packages/bf/50/d09941d53416f2a86676bd0dc341d5968b599a763b73f5d13f51c57b5641/pattern-2.6.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\ALIENW~1\AppData\Local\Temp\pip-install-w36z8q7u\pattern\setup.py", line 40
print n
^
SyntaxError: Missing parentheses in call to 'print'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\ALIENW~1\AppData\Local\Temp\pip-install-w36z8q7u\pattern\
Moreover at Github (https://github.com/clips/pattern) it is stated that:
Pattern supports Python 2.7 and Python 3.6+. The Python 3 version is
currently only available on the development branch.
But how do I access the 'development branch'?
On the other hand, I have successfully installed pattern3 to use with Python 3 but I can not find documentation for pattern3 (compatible with Python 3) using Google.
Update
#Roshan, I am running into an exception. See below:
I am unable to install couchdbkit in ubuntu. The command: pip3 install couchdbkit gives this following error:
Collecting couchdbkit
Using cached couchdbkit-0.6.5.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-_302m_0e/couchdbkit/setup.py", line 25, in <module>
long_description = file(
NameError: name 'file' is not defined
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-_302m_0e/couchdbkit/
Please guide me if there any other way to install couchdbkit in ubuntu.
That is because couchdbkit is not supported in python3. file was removed in versions 3x from python. This is also indicated here:
Couchdbkit requires Python 2.x superior to 2.6.
Why pip3 still tries to download it is another issue.
i'm installing github's python-weka-wrapper with the latest version.
i've installed other library with "pip install ___".
but i got this error code when i'm trying to install the python-weka-wrapper pkg
Collecting python-weka-wrapper
Using cached python-weka-wrapper-0.3.10.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/sf/fwjdy8n10j721jhhp85cpbz40000gn/T/pip-build-xdr96_le/python-weka-wrapper/setup.py", line 41
except HTTPError, e:
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/sf/fwjdy8n10j721jhhp85cpbz40000gn/T/pip-build-xdr96_le/python-weka-wrapper/
this msg keep pops in and i've edited "HTTPError, e" syntax to "HTTPError as e"
and this error aren't solved yet.
please help me!!!!!!!!!
Your log output indicates that you're trying to install version python-weka-wrapper, which is Python 2.7 only. Instead, install python-weka-wrapper3 when using Python 3.
I need to extract IPTC metadata from images. Most of the things I've read about Python packages on Windows suggest using pre-compiled binaries, but I don't see one for IPTCInfo, thus I tried pip3.
I'm getting an error from pip when trying to install this:
C:\Users\hackr>pip3 install IPTCInfo
Collecting IPTCInfo
Downloading IPTCInfo-1.9.5-6.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\hackr\AppData\Local\Temp\pip-build-v4m344a7\IPTCInfo\setup.py", line 32
print self.get_archive_files()
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\hackr\AppData\Local\Temp\pip-build-v4m344a7\IPTCInfo
So, I tried to open that last temporary file it refrences, but it doesn't appear to exist...
I have the same problem. Appears the IPTCinfo is for python-2. I will upgrade IPTCinfo for python-3.
However I have found the library exvi2 which provides the same type of image support. There is a python interface for this at https://wiki.gnome.org/Projects/gexiv2
I maintain IPTCInfo3 in Pypi. I recommend downloading it via pip3 install iptcinfo3 as it is specifically upgraded for Python3x. Follow the readme and issue comments for examples. Enjoy.
This is the link from where i am trying to download the scraper:
https://pypi.python.org/pypi/amazon_scraper/0.1.2
After trying the command ( pip install amazon_scraper) i get this error :
pip install amazon_scraper
Collecting amazon-scraper
Using cached amazon_scraper-0.3.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "c:\users\saurin\appdata\local\temp\pip-build-jxcqui\amazon-scraper\setup.py", line 4, in <module>
del os.link
AttributeError: link
[31mCommand "python setup.py egg_info" failed with error code 1 in
c:\users\saurin\appdata\local\temp\pip-build-jxcqui\amazon-scraper[0m
I tried downloading the rar file running the setup file. I am getting various issues, does any one have solution to this ?
Ensure that you have all the require dependencies installed.
python-amazon-simple-product-api
requests
beautifulsoup4
xmltodict
python-dateutil