I would like to install Orange in Pycharm (On Windows 10). I get this error when I run pip install Orange
(venv) PS C:\Users\xxx\PycharmProjects\ConvertPickleToCode> pip install Orange --pre
Collecting Orange
Using cached Orange-2.7.8.tar.gz (15.0 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [7 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\xxx\AppData\Local\Temp\pip-install-9fslw8vb\orange_19ffe98e627c4d8f80cb888affb41473\setup.py", line 261
except OSError, ex:
^
SyntaxError: invalid syntax
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Related
When I try to install strtotime, its gives error, how can I solve that?
Defaulting to user installation because normal site-packages is not writeable
Collecting strtotime
Using cached strtotime-1.0.4.zip (600 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [7 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\altanhaligur\AppData\Local\Temp\pip-install-u_jk3g0r\strtotime_8280b3f4653f4ee4b0b0dcf4456e7ea4\setup.py", line 33, in <module>
extra_compile_args = sysconfig.get_config_var("CFLAGS").split()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'split'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
I think there are some errors about my python setup but do not want to delete everything and setup again, is there any ways to fix that?
PS C:\Users\Lenovo\Desktop\khurram> pip install turtle
Defaulting to user installation because normal site-packages is not writeable
Collecting turtle
Using cached turtle-0.0.2.tar.gz (11 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [7 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\Lenovo\AppData\Local\Temp\pip-install-p9y4gakw\turtle_c9e4338b26474ea7b22fce8c06a69ff1\setup.py", line 40
except ValueError, ve:
^^^^^^^^^^^^^^
SyntaxError: multiple exception types must be parenthesized
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
i have been trying to get rid of this problem since two weeks but the results are nothing.i tried every possible way of changing path,virtual environment and others way which i have seen on internet please help me to sort out this problem
My output is as follows
[Image of output]
(https://i.stack.imgur.com/3kAOQ.png)
[Text of output]
pip install bsddb3
Collecting bsddb3
Using cached bsddb3-6.2.9.tar.gz (230 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\l_\AppData\Local\Temp\pip-install-amuqt6v0\bsddb3_c6672e4cfb684bbc85e2dc2abddffbb8\setup.py", line 42, in
import setup3
File "C:\Users\l_\AppData\Local\Temp\pip-install-amuqt6v0\bsddb3_c6672e4cfb684bbc85e2dc2abddffbb8\setup3.py", line 385, in
with open(os.path.join(incdir, 'db.h'), 'r') as f :
FileNotFoundError: [Errno 2] No such file or directory: 'db/include\db.h'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
I tried.
Switching systems; Windows, Cygwin, Linux.
pip is already upgraded
setuptools is also upgraded
Everything is working properly while installing through pip
But why this pyhash is throwing error
i just have to install pip install pyhash and i got respected error
Collecting pyhash
Using cached pyhash-0.9.3.tar.gz (602 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\varal\AppData\Local\Temp\pip-install-b_wq2nn5\pyhash_b5d95b6aaab44fc8b5beb9bea15f2ca6\setup.py", line 38, in <module>
os.path.join(os.environ.get('PYTHON_HOME'), 'include'),
File "C:\Users\varal\AppData\Local\Programs\Python\Python310\lib\ntpath.py", line 78, in join
path = os.fspath(path)
TypeError: expected str, bytes or os.PathLike object, not NoneType
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
PS C:\Users\varal>
Collecting autopy
Using cached autopy-4.0.0.tar.gz (20 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\fuzai\AppData\Local\Temp\pip-install-_2r7sndy\autopy_ac502467bf4f44ceafc652745a402798\setup.py", line 8, in
from setuptools_rust import Binding, RustExtension
ModuleNotFoundError: No module named 'setuptools_rust'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.