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
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?
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.
Here is the error itself. To install, I use the command "pip install librosa", Python version 3.11.0
Collecting numba\>=0.45.1
Using cached numba-0.56.4.tar.gz (2.4 MB)
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\\merge\\AppData\\Local\\Temp\\pip-install-qgu9dc69\\numba_22de5875b2534efba1d1a87fc556500b\\setup.py", line 51, in \<module\>
\_guard_py_ver()
File "C:\\Users\\merge\\AppData\\Local\\Temp\\pip-install-qgu9dc69\\numba_22de5875b2534efba1d1a87fc556500b\\setup.py", line 48, in \_guard_py_ver
raise RuntimeError(msg.format(cur_py, min_py, max_py))
RuntimeError: Cannot install on Python version 3.11.0; only versions \>=3.7,\<3.11 are supported.
\[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 to install not in Pycharm and changed the version of Python, I did not find anything on the Internet about this error, everywhere they suggest installing via "conda". Is there another way?
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.