Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error trying to install 😔 #2

Open
DrakoAI opened this issue Jun 14, 2022 · 1 comment
Open

Error trying to install 😔 #2

DrakoAI opened this issue Jun 14, 2022 · 1 comment

Comments

@DrakoAI
Copy link

DrakoAI commented Jun 14, 2022

  • I tried to install on windows and it gave me the following error message:

pip install git+https://github.com/MIR-MU/pine.git

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 the same way in kali and it also gave me the same error. So I tried this other way, but it didn't work either:

┌──(dr4ko㉿KaliLNX)-[~/Descargas/pine]
└─$ sudo python setup.py install

Installed /usr/local/lib/python3.10/dist-packages/torch-1.11.0-py3.10-linux-x86_64.egg
Searching for scipy<=1.7.1
Reading https://pypi.org/simple/scipy/
/usr/lib/python3/dist-packages/pkg_resources/init.py:116: PkgResourcesDeprecationWarning: is an invalid version and will not be supported in a future release
warnings.warn(
Downloading https://files.pythonhosted.org/packages/47/33/a24aec22b7be7fdb10ec117a95e1e4099890d8bbc6646902f443fc7719d1/scipy-1.7.1.tar.gz#sha256=6b47d5fa7ea651054362561a28b1ccc8da9368a39514c1bbf6c0977a1c376764
Best match: scipy 1.7.1
Processing scipy-1.7.1.tar.gz
Writing /tmp/easy_install-w5cnysz7/scipy-1.7.1/setup.cfg
Running scipy-1.7.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-w5cnysz7/scipy-1.7.1/egg-dist-tmp-e4njoatl
/tmp/easy_install-w5cnysz7/scipy-1.7.1/setup.py:490: UserWarning: Unrecognized setuptools command ('-q bdist_egg --dist-dir /tmp/easy_install-w5cnysz7/scipy-1.7.1/egg-dist-tmp-e4njoatl'), proceeding with generating Cython sources and expanding templates
warnings.warn("Unrecognized setuptools command ('{}'), proceeding with "
Error: 'pybind11' must be installed before running the build.

error: Setup script exited with 1

@Witiko
Copy link
Member

Witiko commented Jun 15, 2022

@DrakoAI Hello, sorry to hear about your trouble.

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.

Is this all the output that was produced? I would expect some more details to be provided such as the actual error message, which seems to be missing from your post. Just a hunch: do you have Git installed? Installing with pip install git+... requires Git. The command to install Git would be sudo apt install git on Ubuntu.

┌──(dr4ko㉿KaliLNX)-[~/Descargas/pine]
└─$ sudo python setup.py install

You probably want to drop the sudo. If you omit it, python will install the package to ~/.local.

Running scipy-1.7.1/setup.py -q bdist_egg [...]
[...]
warnings.warn("Unrecognized setuptools command ('{}'), proceeding with "
Error: 'pybind11' must be installed before running the build.

Seems like an issue with building scipy. Try installing the wheel package first, so that python tries to download pre-compiled wheels for packages that have them available on pypi (most prominent packages do) instead of building every single package:

pip install wheen
python setup.py install  # `pip install .` will also work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants