Running into errors with greenlet when pip installing certain packages - python

I realize there are a lot of variations of these error questions out there, from my search nothing seemed to help.
I have recently pip installed some packages using my cmd prompt on windows. For instance pip installed Flask and had no issues. However I recently tried to pip install cs50 and Flask-SQLAlchemy and have gotten the same error with regards to greenlet.
My question is two fold. What does greenlet have to do with installing these packages. And secondly how can I fix this error so that I can pip install these packages?
Collecting Flask-SQLAlchemy
Using cached Flask_SQLAlchemy-2.5.1-py2.py3-none-any.whl (17 kB)
Collecting SQLAlchemy>=0.8.0
Using cached SQLAlchemy-1.4.29.tar.gz (8.0 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: Flask>=0.10 in c:\msys64\mingw64\lib\python3.9\site-packages (from Flask-SQLAlchemy) (2.0.2)
Requirement already satisfied: itsdangerous>=2.0 in c:\msys64\mingw64\lib\python3.9\site-packages (from Flask>=0.10->Flask-SQLAlchemy) (2.0.1)
Requirement already satisfied: Jinja2>=3.0 in c:\msys64\mingw64\lib\python3.9\site-packages (from Flask>=0.10->Flask-SQLAlchemy) (3.0.3)
Requirement already satisfied: click>=7.1.2 in c:\msys64\mingw64\lib\python3.9\site-packages (from Flask>=0.10->Flask-SQLAlchemy) (8.0.3)
Requirement already satisfied: Werkzeug>=2.0 in c:\msys64\mingw64\lib\python3.9\site-packages (from Flask>=0.10->Flask-SQLAlchemy) (2.0.2)
Collecting greenlet!=0.4.17
Using cached greenlet-1.1.2.tar.gz (91 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: colorama in c:\msys64\mingw64\lib\python3.9\site-packages (from click>=7.1.2->Flask>=0.10->Flask-SQLAlchemy) (0.4.4)
Requirement already satisfied: MarkupSafe>=2.0 in c:\msys64\mingw64\lib\python3.9\site-packages (from Jinja2>=3.0->Flask>=0.10->Flask-SQLAlchemy) (2.0.1)
Building wheels for collected packages: SQLAlchemy, greenlet
Building wheel for SQLAlchemy (setup.py) ... done
Created wheel for SQLAlchemy: filename=SQLAlchemy-1.4.29-cp39-cp39-win_amd64.whl size=1512539 sha256=25d3a12bbff4ff0c365154c700de44d089427650aea9b98e228c6077852eab61
Stored in directory: c:\users\t\appdata\local\pip\cache\wheels\6d\94\a6\8bdac6f92ce851f71a9fa62934a06cf2b654700b5f258242c7
Building wheel for greenlet (setup.py) ... error
ERROR: Command errored out with exit status 1:
After this error I get a bunch more lines but some that stand out are
ERROR: Failed building wheel for greenlet
Running setup.py clean for greenlet
Successfully built SQLAlchemy
Failed to build greenlet
Installing collected packages: greenlet, SQLAlchemy, Flask-SQLAlchemy
Running setup.py install for greenlet ... error
ERROR: Command errored out with exit status 1:
And
fatal error C1083: Cannot open include file: 'Python.h': No such file or directory
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.30.30705\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
----------------------------------------
ERROR: Command errored out with exit status 1:

Related

django-autotranslate doesn't install, returns Preparing metadata (setup.py) ... error during installation

I'm trying to install django-auto translate but it keeps telling me:
Preparing metadata (setup.py) error
error: subprocess-exited-with-error
i've also tried older versions of the package and i keep getting errors concerning metadata setup, how can i go about this?
Input: pip install django-autotranslate
Output:
#cmd execution after running :pip install django-autotranslate
Collecting django-autotranslate
Using cached django_autotranslate-1.2.0-py3-none-any.whl (10 kB)
Collecting six
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting goslate
Using cached goslate-1.5.4.tar.gz (14 kB)
Preparing metadata (setup.py) ... done
Collecting polib
Using cached polib-1.1.1-py2.py3-none-any.whl (20 kB)
Requirement already satisfied: django in c:\users\vyktor\dev\language-translator\venv\lib\site-packages (from django-autotranslate) (4.1.2)
Requirement already satisfied: sqlparse>=0.2.2 in c:\users\vyktor\dev\language-translator\venv\lib\site-packages (from django->django-autotranslate) (0.4.3)
Requirement already satisfied: tzdata in c:\users\vyktor\dev\language-translator\venv\lib\site-packages (from django->django-autotranslate) (2022.5)
Requirement already satisfied: asgiref<4,>=3.5.2 in c:\users\vyktor\dev\language-translator\venv\lib\site-packages (from django->django-autotranslate) (3.5.2)
Collecting futures
Using cached futures-3.0.5.tar.gz (25 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [27 lines of output]

Dependency problem (pefile -> future) during pip installing pyinstaller

I cannot install pyinstaller because of some dependecy conflicts. Start and the and of the log below...
Using Python 3.7.9, pip 21.3.1, windows 7 64, instaling from cmd line as administrator
Log:
Collecting pyinstaller
Using cached pyinstaller-4.7-py3-none-win_amd64.whl (2.0 MB)
Collecting pyinstaller-hooks-contrib>=2020.6
Using cached pyinstaller_hooks_contrib-2021.4-py2.py3-none-any.whl (215 kB)
Collecting altgraph
Using cached altgraph-0.17.2-py2.py3-none-any.whl (21 kB)
Requirement already satisfied: setuptools in c:\python\spyder\pkgs (from pyinstaller) (59.2.0)
Requirement already satisfied: importlib-metadata in c:\python\spyder\pkgs (from pyinstaller) (4.2.0)
Requirement already satisfied: pywin32-ctypes>=0.2.0 in c:\python\spyder\pkgs (from pyinstaller) (0.2.0)
Collecting pefile>=2017.8.1
Using cached pefile-2021.9.3.tar.gz (72 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting future
Using cached future-0.18.2.tar.gz (829 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
Using cached future-0.18.1.tar.gz (828 kB)
...
...
Using cached pyinstaller-2.0.zip (3.4 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
Using cached pyinstaller-2.0.tar.bz2 (2.5 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
The conflict is caused by:
pefile 2021.9.3 depends on future
...
pefile 2017.8.1 depends on future
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

pip install mitmproxy failed " error: command 'cl.exe' failed: None" in windows

pip install mitmproxy failed .
command : pip install mitmproxy==7.0.4
python version : 3.10
VS version : 2019 have add C++ LIBRARY
i check similar ticket but still can't working . in Visual Studio 2019 folder have CL.exe and also execute command can working.
have try lots of method but still failed .
example : execute command in VS Command Prompt.
does the latest version not support this mitmproxy module ?
enter image description here
C:\Users\HLI211\PycharmProjects\MobileApp\venv\Scripts>pip install mitmproxy==7.0.4
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting mitmproxy==7.0.4
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/1f/b7/6e0a57ae8916bd9c991b664366ad9b43e69c0f10a8ca085d9aea9b45c520/mitmproxy-7.0.4-py3-none-any.whl (1.1 MB)
Requirement already satisfied: h11<0.13,>=0.11 in c:\users\hli211\pycharmprojects\mobileapp\venv\lib\site-packages (from mitmproxy==7.0.4) (0.12.0)
Collecting h2<5,>=4.0
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/2a/e5/db6d438da759efbb488c4f3fbdab7764492ff3c3f953132efa6b9f0e9e53/h2-4.1.0-py3-none-any.whl (57 kB)
Collecting cryptography<3.5,>=3.3
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b6/32/e82e51a64280b16647af538bbfe4424285a41f01687899405e997a6e39b4/cryptography-3.4.8-cp36-abi3-win_amd64.whl (1.6 MB)
Requirement already satisfied: click<8.1,>=7.0 in c:\users\hli211\pycharmprojects\mobileapp\venv\lib\site-packages (from mitmproxy==7.0.4) (8.0.3)
Collecting urwid<2.2,>=2.1.1
Using cached urwid-2.1.2-py3-none-any.whl
Collecting zstandard<0.16,>=0.11
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b4/79/7b192e51a2952dee3a3c9dbd9208a9838d8d497745a18a5528e2dbfb465e/zstandard-0.15.2.tar.gz (1.0 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting pydivert<2.2,>=2.0.3
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.tuna.tsinghua.edu.cn', port=443): Read timed out. (read timeout=15)")': /packages/ca/8f/86d7931c62013a5a7ebf4e1642a87d4a6050c0f570e714f61b0df1984c62/pydivert-2.1.0-py2.py3-none-any.whl
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ca/8f/86d7931c62013a5a7ebf4e1642a87d4a6050c0f570e714f61b0df1984c62/pydivert-2.1.0-py2.py3-none-any.whl (104 kB)
Collecting asgiref<3.5,>=3.2.10
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/fe/66/577f32b54c50dcd8dec38447258e82ed327ecb86820d67ae7b3dea784f13/asgiref-3.4.1-py3-none-any.whl (25 kB)
Collecting protobuf<3.19,>=3.14
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ec/2e/309682e1fe979b17d6fec004e8107a953d1300b93c32c397a9c3ca60322e/protobuf-3.18.1-py2.py3-none-any.whl (174 kB)
Collecting blinker<1.5,>=1.4
Using cached blinker-1.4-py3-none-any.whl
Collecting kaitaistruct<0.10,>=0.7
Using cached kaitaistruct-0.9-py2.py3-none-any.whl
Collecting pyparsing<2.5,>=2.4.2
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Collecting msgpack<1.1.0,>=1.0.0
Using cached msgpack-1.0.2-cp310-cp310-win_amd64.whl
Collecting tornado<7,>=4.3
Using cached tornado-6.1-cp310-cp310-win_amd64.whl
Requirement already satisfied: flask<2.1,>=1.1.1 in c:\users\hli211\pycharmprojects\mobileapp\venv\lib\site-packages (from mitmproxy==7.0.4) (2.0.2)
Collecting passlib<1.8,>=1.6.5
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/3b/a4/ab6b7589382ca3df236e03faa71deac88cae040af60c071a78d254a62172/passlib-1.7.4-py2.py3-none-any.whl (525 kB)
Collecting pyperclip<1.9,>=1.6.0
Using cached pyperclip-1.8.2-py3-none-any.whl
Requirement already satisfied: sortedcontainers<2.5,>=2.3 in c:\users\hli211\pycharmprojects\mobileapp\venv\lib\site-packages (from mitmproxy==7.0.4) (2.4.0)
Collecting ruamel.yaml<0.17.17,>=0.16
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d3/cc/248dfb697bb98152c187ced584e505124ed952529d7f8e74b28f6f4d6f31/ruamel.yaml-0.17.16-py3-none-any.whl (109 kB)
Collecting publicsuffix2<3,>=2.20190812
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.tuna.tsinghua.edu.cn', port=443): Read timed out. (read timeout=15)")': /packages/9d/16/053c2945c5e3aebeefb4ccd5c5e7639e38bc30ad1bdc7ce86c6d01707726/publicsuffix2-2.20191221-py2.py3-none-any.whl
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/9d/16/053c2945c5e3aebeefb4ccd5c5e7639e38bc30ad1bdc7ce86c6d01707726/publicsuffix2-2.20191221-py2.py3-none-any.whl (89 kB)
|████████████████████████████████| 89 kB 33 kB/s
Requirement already satisfied: certifi>=2019.9.11 in c:\users\hli211\pycharmprojects\mobileapp\venv\lib\site-packages (from mitmproxy==7.0.4) (2021.10.8)
Collecting ldap3<2.10,>=2.8
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/4e/f6/71d6ec9f18da0b2201287ce9db6afb1a1f637dedb3f0703409558981c723/ldap3-2.9.1-py2.py3-none-any.whl (432 kB)
Collecting Brotli<1.1,>=1.0
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/6b/11/7d28cd3a5492fed09159e9b37613fdcec7655d93dec664b79d4bb4bb67b8/Brotli-1.0.9-cp310-cp310-win_amd64.whl (383 kB)
Collecting pyOpenSSL<20.1,>=20.0
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b2/5e/06351ede29fd4899782ad335c2e02f1f862a887c20a3541f17c3fa1a3525/pyOpenSSL-20.0.1-py2.py3-none-any.whl (54 kB)
Collecting hyperframe<7,>=6.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d7/de/85a784bcc4a3779d1753a7ec2dee5de90e18c7bcf402e71b51fcf150b129/hyperframe-6.0.1-py3-none-any.whl (12 kB)
Requirement already satisfied: wsproto<1.1,>=1.0 in c:\users\hli211\pycharmprojects\mobileapp\venv\lib\site-packages (from mitmproxy==7.0.4) (1.0.0)
Requirement already satisfied: colorama in c:\users\hli211\pycharmprojects\mobileapp\venv\lib\site-packages (from click<8.1,>=7.0->mitmproxy==7.0.4) (0.4.4)
Requirement already satisfied: cffi>=1.12 in c:\users\hli211\pycharmprojects\mobileapp\venv\lib\site-packages (from cryptography<3.5,>=3.3->mitmproxy==7.0.4) (1.15.0)
Requirement already satisfied: Werkzeug>=2.0 in c:\users\hli211\pycharmprojects\mobileapp\venv\lib\site-packages (from flask<2.1,>=1.1.1->mitmproxy==7.0.4) (2.0.2)
Requirement already satisfied: Jinja2>=3.0 in c:\users\hli211\pycharmprojects\mobileapp\venv\lib\site-packages (from flask<2.1,>=1.1.1->mitmproxy==7.0.4) (3.0.3)
Requirement already satisfied: itsdangerous>=2.0 in c:\users\hli211\pycharmprojects\mobileapp\venv\lib\site-packages (from flask<2.1,>=1.1.1->mitmproxy==7.0.4) (2.0.1)
Collecting hpack<5,>=4.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d5/34/e8b383f35b77c402d28563d2b8f83159319b509bc5f760b15d60b0abf165/hpack-4.0.0-py3-none-any.whl (32 kB)
Requirement already satisfied: pyasn1>=0.4.6 in c:\users\hli211\pycharmprojects\mobileapp\venv\lib\site-packages (from ldap3<2.10,>=2.8->mitmproxy==7.0.4) (0.4.8)
Requirement already satisfied: six>=1.5.2 in c:\users\hli211\pycharmprojects\mobileapp\venv\lib\site-packages (from pyOpenSSL<20.1,>=20.0->mitmproxy==7.0.4) (1.16.0)
Requirement already satisfied: pycparser in c:\users\hli211\pycharmprojects\mobileapp\venv\lib\site-packages (from cffi>=1.12->cryptography<3.5,>=3.3->mitmproxy==7.0.4) (2.21)
Requirement already satisfied: MarkupSafe>=2.0 in c:\users\hli211\pycharmprojects\mobileapp\venv\lib\site-packages (from Jinja2>=3.0->flask<2.1,>=1.1.1->mitmproxy==7.0.4) (2.0.1)
Building wheels for collected packages: zstandard
Building wheel for zstandard (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\hli211\pycharmprojects\mobileapp\venv\scripts\python.exe' 'c:\users\hli211\pycharmprojects\mobileapp\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' build_wheel 'C:\Users\HLI211\AppData\Local\Temp\tmplzej_vyj'
cwd: C:\Users\HLI211\AppData\Local\Temp\pip-install-r18rbh47\zstandard_28fe937167f541f083d847bd1f9ca697
Complete output (17 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.10
creating build\lib.win32-3.10\zstandard
copying zstandard\backend_cffi.py -> build\lib.win32-3.10\zstandard
copying zstandard\__init__.py -> build\lib.win32-3.10\zstandard
copying zstandard\__init__.pyi -> build\lib.win32-3.10\zstandard
copying zstandard\py.typed -> build\lib.win32-3.10\zstandard
running build_ext
building 'zstandard.backend_c' extension
creating build\temp.win32-3.10
creating build\temp.win32-3.10\Release
creating build\temp.win32-3.10\Release\c-ext
cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic-ext -Izstd -Ic:\users\hli211\pycharmprojects\mobileapp\venv\include -IC:\Users\HLI211\AppData\Local\Programs\Python\Python310\include -IC:\Users\HLI211\AppData\Local\Programs\Python\Python310\Include /Tcc-ext\backend_c.c /Fobuild\temp.win32-3.10\Release\c-ext\backend_c.obj -DZSTD_SINGLE_FILE -DZSTDLIB_VISIBILITY= -DZDICTLIB_VISIBILITY= -DZSTDERRORLIB_VISIBILITY=
error: command 'cl.exe' failed: None
----------------------------------------
ERROR: Failed building wheel for zstandard
Failed to build zstandard
ERROR: Could not build wheels for zstandard, which is required to install pyproject.toml-based projects

PEP 517 Error when installing pyinstaller

I´ve been using Pyhton 3.9.4 on mobaxterm. I am trying to install pyinstaller to create a portable exe but start the installtion keeps getting me the same Error message:
Collecting pyinstaller
Using cached pyinstaller-4.4.tar.gz (3.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Requirement already satisfied: pyinstaller-hooks-contrib>=2020.6 in /usr/lib/python3.6/site-packages (from pyinstaller) (2021.2)
Requirement already satisfied: altgraph in /usr/lib/python3.6/site-packages (from pyinstaller) (0.17)
Requirement already satisfied: importlib-metadata in /usr/lib/python3.6/site-packages (from pyinstaller) (4.6.1)
Requirement already satisfied: setuptools in /usr/lib/python3.6/site-packages (from pyinstaller) (57.1.0)
Requirement already satisfied: typing-extensions>=3.6.4 in /usr/lib/python3.6/site-packages (from importlib-metadata->pyinstaller) (3.10.0.0)
Requirement already satisfied: zipp>=0.5 in /usr/lib/python3.6/site-packages (from importlib-metadata->pyinstaller) (3.5.0)
Building wheels for collected packages: pyinstaller
Building wheel for pyinstaller (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3.6 /usr/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmpljj4vhly
cwd: /tmp/pip-install-ce8ocj14/pyinstaller_331447efec0e44d99e5342731458d786
Complete output (19 lines):
running bdist_wheel
running build
running build_bootloader
Setting top to : /tmp/pip-install-ce8ocj14/pyinstaller_331447efec0e44d99e5342731458d786/bootloader
Setting out to : /tmp/pip-install-ce8ocj14/pyinstaller_331447efec0e44d99e5342731458d786/bootloader/build
Python Version : 3.6.8 (default, Feb 15 2019, 01:54:23) [GCC 7.4.0]
Checking for 'gcc' (C compiler) : /bin/gcc
Checking size of pointer : 4
Platform : Cygwin-32bit detected based on compiler
Checking for compiler flags -m32 : yes
Checking for linker flags -m32 : yes
Checking for library dl : yes
Checking for library pthread : yes
Checking for library m : yes
Checking for library z : not found
The configuration failed
(complete log in /tmp/pip-install-ce8ocj14/pyinstaller_331447efec0e44d99e5342731458d786/bootloader/build/config.log)
No precompiled bootloader found. Trying to compile it for you ...
ERROR: Failed compiling the bootloader. Please compile manually and rerun setup.py
----------------------------------------
ERROR: Failed building wheel for pyinstaller
Failed to build pyinstaller
ERROR: Could not build wheels for pyinstaller which use PEP 517 and cannot be installed directly
I am using:
Python 3.9.4
pip 21.1.3
gcc 7.4.0
Thank you for your time.

Installing MeshPy in Colab

I have tried to install MeshPy in Colab using !pip install MeshPy but I got the following output and the package has not been installed. I would appreciate any suggestion.
Here is the complete output
Collecting MeshPy
Downloading
https://files.pythonhosted.org/packages/90/03/3bb205ac46141074aeb561f5bbf60fb2214380aa6ac1435b49d275cf219a/MeshPy-2018.2.1.tar.gz (472kB)
100% |████████████████████████████████| 481kB 25.8MB/s
Collecting pytools>=2011.2 (from MeshPy)
Downloading
https://files.pythonhosted.org/packages/ac/a3/f54f7190315ad41b7334d8733350e7fcefded8f25e0b45e2329b80279921/pytools-2019.1.tar.gz (57kB)
100% |████████████████████████████████| 61kB 22.3MB/s
Requirement already satisfied: pytest>=2 in /usr/local/lib/python3.6/dist-packages (from MeshPy) (3.10.1)
Requirement already satisfied: numpy in /usr/local/lib/python3.6/dist-packages (from MeshPy) (1.14.6)
Collecting gmsh_interop (from MeshPy)
Downloading
https://files.pythonhosted.org/packages/a5/8c/62c40850d8e8a2c9c3d223c9b9456ed4431f02b0c45e16cc90bf0025fffe/gmsh_interop-2019.1.tar.gz
Requirement already satisfied: six in /usr/local/lib/python3.6/dist-packages (from MeshPy) (1.11.0)
Requirement already satisfied: decorator>=3.2.0 in /usr/local/lib/python3.6/dist-packages (from pytools>=2011.2->MeshPy) (4.3.2)
Collecting appdirs>=1.4.0 (from pytools>=2011.2->MeshPy)
Downloading
https://files.pythonhosted.org/packages/56/eb/810e700ed1349edde4cbdc1b2a21e28cdf115f9faf263f6bbf8447c1abf3/appdirs-1.4.3-py2.py3-none-any.whl
Requirement already satisfied: atomicwrites>=1.0 in /usr/local/lib/python3.6/dist-packages (from pytest>=2->MeshPy) (1.3.0)
Requirement already satisfied: setuptools in /usr/local/lib/python3.6/dist-packages (from pytest>=2->MeshPy) (40.8.0)
Requirement already satisfied: py>=1.5.0 in /usr/local/lib/python3.6/dist-packages (from pytest>=2->MeshPy) (1.8.0)
Requirement already satisfied: pluggy>=0.7 in /usr/local/lib/python3.6/dist-packages (from pytest>=2->MeshPy) (0.9.0)
Requirement already satisfied: attrs>=17.4.0 in /usr/local/lib/python3.6/dist-packages (from pytest>=2->MeshPy) (18.2.0)
Requirement already satisfied: more-itertools>=4.0.0 in /usr/local/lib/python3.6/dist-packages (from pytest>=2->MeshPy) (6.0.0)
Building wheels for collected packages: MeshPy, pytools, gmsh-interop
Building wheel for MeshPy (setup.py) ... error
Failed building wheel for MeshPy
Running setup.py clean for MeshPy
Building wheel for pytools (setup.py) ... done
Stored in directory: /root/.cache/pip/wheels/1b/f4/26/46b6cf949b3cccefcc41e6b526f7c16351a4a5c124fc6f6eaa
Building wheel for gmsh-interop (setup.py) ... done
Stored in directory: /root/.cache/pip/wheels/be/19/0b/76011e06f64c41e0dcfed58e171c091c31f2b499a981d8d773
Successfully built pytools gmsh-interop
Failed to build MeshPy
Installing collected packages: appdirs, pytools, gmsh-interop, MeshPy
Running setup.py install for MeshPy ... error
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-matqpp2p/MeshPy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-8_339liz/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-matqpp2p/MeshPy/
Not enough information in your error. To see the exact cause we need longer traceback.
Let's me guess. I tried to install MeshPy myself with pip install MeshPy and got an error about absent of pybind11. So I ran
pip install pybind11
pip install MeshPy
and MeshPy was successfully installed.

Categories