Reputation: 29
Collecting Orange
Downloading https://files.pythonhosted.org/packages/43/61/29c81c53504fb4c774eaec5218ca39f5d2625a61f0f6a52c61097be17f1c/Orange-2.7.8.tar.gz (15.0MB)
100% |████████████████████████████████| 15.0MB 1.8MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-gz6v8uk6/Orange/setup.py", line 261
except OSError, ex:
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-gz6v8uk6/Orange/
please help me to solve this.Thanks in advance!
Upvotes: 1
Views: 1391
Reputation: 61
It happened to me and it was a version problem. This procedure solved the issue:
pip3 install --upgrade pip
python3 -m pip install --upgrade setuptools
pip3 install orange3
Upvotes: 1
Reputation: 143
Some years ago, Python 3 has changed how this expression should be written.
It changed to except OSError as e
.
Source: Python : except OSError, e:
An alternative to getting rid of it is to install orange3 instead of orange.
Upvotes: 0