Trouble installing python openstacksdk on Windows machine - python

I am trying to install the python openstacksdk package via PyCharm (using pip in terminal), but I keep getting the following error message. I only posted a partial error message, I can add the whole message if needed. Any thoughts? I am using a Windows 10 machine.
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
PS C:\Users\szadro200\PycharmProjects\opentstack_ck> pip install openstacksdk
Collecting openstacksdk
Using cached openstacksdk-0.61.0-py3-none-any.whl (1.4 MB)
Collecting jmespath>=0.9.0
Using cached jmespath-0.10.0-py2.py3-none-any.whl (24 kB)
Collecting jsonpatch!=1.20,>=1.16
Using cached jsonpatch-1.32-py2.py3-none-any.whl (12 kB)
Collecting keystoneauth1>=3.18.0
Using cached keystoneauth1-4.4.0-py3-none-any.whl (314 kB)
Requirement already satisfied: requestsexceptions>=1.2.0 in c:\users\szadro200\pycharmprojects\opentstack_ck\venv\lib\site-packages (from openstacksdk) (1.4.0)
Requirement already satisfied: decorator>=4.4.1 in c:\users\szadro200\pycharmprojects\opentstack_ck\venv\lib\site-packages (from openstacksdk) (5.1.1)
Collecting munch>=2.1.0
Using cached munch-2.5.0-py2.py3-none-any.whl (10 kB)
Requirement already satisfied: PyYAML>=3.13 in c:\users\szadro200\pycharmprojects\opentstack_ck\venv\lib\site-packages (from openstacksdk) (6.0)
Collecting cryptography>=2.7
Using cached cryptography-36.0.1-cp36-abi3-win_amd64.whl (2.2 MB)
Requirement already satisfied: iso8601>=0.1.11 in c:\users\szadro200\pycharmprojects\opentstack_ck\venv\lib\site-packages (from openstacksdk) (1.0.2)
Collecting netifaces>=0.10.4
Using cached netifaces-0.11.0.tar.gz (30 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: os-service-types>=1.7.0 in c:\users\szadro200\pycharmprojects\opentstack_ck\venv\lib\site-packages (from openstacksdk) (1.7.0)
Collecting appdirs>=1.3.0
Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Requirement already satisfied: pbr!=2.1.0,>=2.0.0 in c:\users\szadro200\pycharmprojects\opentstack_ck\venv\lib\site-packages (from openstacksdk) (5.8.1)
Collecting dogpile.cache>=0.6.5
Using cached dogpile.cache-1.1.5-py3-none-any.whl (51 kB)
Requirement already satisfied: cffi>=1.12 in c:\users\szadro200\pycharmprojects\opentstack_ck\venv\lib\site-packages (from cryptography>=2.7->openstacksdk) (1.15.0)
Requirement already satisfied: stevedore>=3.0.0 in c:\users\szadro200\pycharmprojects\opentstack_ck\venv\lib\site-packages (from dogpile.cache>=0.6.5->openstacksdk) (3.5.0)
Requirement already satisfied: jsonpointer>=1.9 in c:\users\szadro200\pycharmprojects\opentstack_ck\venv\lib\site-packages (from jsonpatch!=1.20,>=1.16->openstacksdk) (2.2)
Requirement already satisfied: requests>=2.14.2 in c:\users\szadro200\pycharmprojects\opentstack_ck\venv\lib\site-packages (from keystoneauth1>=3.18.0->openstacksdk) (2.27.1)
Requirement already satisfied: six>=1.10.0 in c:\users\szadro200\pycharmprojects\opentstack_ck\venv\lib\site-packages (from keystoneauth1>=3.18.0->openstacksdk) (1.16.0)
Requirement already satisfied: pycparser in c:\users\szadro200\pycharmprojects\opentstack_ck\venv\lib\site-packages (from cffi>=1.12->cryptography>=2.7->openstacksdk) (2.21)
Requirement already satisfied: idna<4,>=2.5 in c:\users\szadro200\pycharmprojects\opentstack_ck\venv\lib\site-packages (from requests>=2.14.2->keystoneauth1>=3.18.0->openstacksdk) (3.3)
Requirement already satisfied: charset-normalizer~=2.0.0 in c:\users\szadro200\pycharmprojects\opentstack_ck\venv\lib\site-packages (from requests>=2.14.2->keystoneauth1>=3.18.0->openstacksdk) (2.0.12)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\szadro200\pycharmprojects\opentstack_ck\venv\lib\site-packages (from requests>=2.14.2->keystoneauth1>=3.18.0->openstacksdk) (1.26.8)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\szadro200\pycharmprojects\opentstack_ck\venv\lib\site-packages (from requests>=2.14.2->keystoneauth1>=3.18.0->openstacksdk) (2021.10.8)
Building wheels for collected packages: netifaces
Building wheel for netifaces (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [11 lines of output]
running bdist_wheel
running build
running build_ext
building 'netifaces' extension
creating build
creating build\temp.win-amd64-3.9
creating build\temp.win-amd64-3.9\Release
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DWIN32=1 -DNETIFACES_VERSION=0.11.0 -Ic:\users\szadro200\pycharmprojects\opentstack_ck\venv\include -IC:\Python\Python39\include -IC:\Python\Pyth
on39\Include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETF
XSDK\4.6.1\include\um" /Tcnetifaces.c /Fobuild\temp.win-amd64-3.9\Release\netifaces.obj
netifaces.c
c:\python\python39\include\pyconfig.h(200): fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit code 2
[end of output]

You don't really need to use pip when you are using pycharm! Just head over to your code and go to the line where you have typed "import openstacksdk" and click it. A red or yellow bulb icon should appear, click on it, and hit the first option: import openstacksdk. Pycharm would automatically download the library for you!

I was finally able to resolve my issue when trying to install openstacksdk in Python either by pip install or PyCharm.
I had to install Microsoft C++ Build Tools via the following url https://visualstudio.microsoft.com/visual-cpp-build-tools/

Related

How to solve this Error while installing libraries in Python?

While executing this code pip install simpletransformers datasets tqdm pandas
I'm getting errors. I'm attaching the logs.
Collecting simpletransformers
Using cached simpletransformers-0.63.9-py3-none-any.whl (250 kB)
Collecting datasets
Using cached datasets-2.9.0-py3-none-any.whl (462 kB)
Collecting tqdm
Using cached tqdm-4.64.1-py2.py3-none-any.whl (78 kB)
Collecting pandas
Using cached pandas-1.5.3-cp311-cp311-win_amd64.whl (10.3 MB)
Collecting numpy
Using cached numpy-1.24.1-cp311-cp311-win_amd64.whl (14.8 MB)
Requirement already satisfied: requests in d:\program files\python\lib\site-packages (from simpletransformers) (2.28.2)
Collecting regex
Using cached regex-2022.10.31-cp311-cp311-win_amd64.whl (267 kB)
Collecting transformers>=4.6.0
Using cached transformers-4.26.0-py3-none-any.whl (6.3 MB)
Collecting scipy
Using cached scipy-1.10.0-cp311-cp311-win_amd64.whl (42.2 MB)
Collecting scikit-learn
Using cached scikit_learn-1.2.1-cp311-cp311-win_amd64.whl (8.2 MB)
Collecting seqeval
Using cached seqeval-1.2.2-py3-none-any.whl
Collecting tensorboard
Using cached tensorboard-2.11.2-py3-none-any.whl (6.0 MB)
Requirement already satisfied: tokenizers in d:\program files\python\lib\site-packages (from simpletransformers) (0.13.2)
Collecting wandb>=0.10.32
Using cached wandb-0.13.9-py2.py3-none-any.whl (2.0 MB)
Collecting streamlit
Using cached streamlit-1.17.0-py2.py3-none-any.whl (9.3 MB)
Collecting sentencepiece
Using cached sentencepiece-0.1.97.tar.gz (524 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting pyarrow>=6.0.0
Using cached pyarrow-11.0.0-cp311-cp311-win_amd64.whl (20.5 MB)
Collecting dill<0.3.7
Using cached dill-0.3.6-py3-none-any.whl (110 kB)
Collecting xxhash
Using cached xxhash-3.2.0-cp311-cp311-win_amd64.whl (30 kB)
Collecting multiprocess
Using cached multiprocess-0.70.14-py310-none-any.whl (134 kB)
Collecting fsspec[http]>=2021.11.1
Using cached fsspec-2023.1.0-py3-none-any.whl (143 kB)
Collecting aiohttp
Using cached aiohttp-3.8.3-cp311-cp311-win_amd64.whl (317 kB)
Collecting huggingface-hub<1.0.0,>=0.2.0
Using cached huggingface_hub-0.12.0-py3-none-any.whl (190 kB)
Requirement already satisfied: packaging in d:\program files\python\lib\site-packages (from datasets) (23.0)
Collecting responses<0.19
Using cached responses-0.18.0-py3-none-any.whl (38 kB)
Requirement already satisfied: pyyaml>=5.1 in d:\program files\python\lib\site-packages (from datasets) (6.0)
Requirement already satisfied: colorama in d:\program files\python\lib\site-packages (from tqdm) (0.4.6)
Requirement already satisfied: python-dateutil>=2.8.1 in d:\program files\python\lib\site-packages (from pandas) (2.8.2)
Requirement already satisfied: pytz>=2020.1 in d:\program files\python\lib\site-packages (from pandas) (2022.7.1)
Requirement already satisfied: attrs>=17.3.0 in d:\program files\python\lib\site-packages (from aiohttp->datasets) (22.2.0)
Collecting charset-normalizer<3.0,>=2.0
Using cached charset_normalizer-2.1.1-py3-none-any.whl (39 kB)
Collecting multidict<7.0,>=4.5
Using cached multidict-6.0.4-cp311-cp311-win_amd64.whl (28 kB)
Collecting async-timeout<5.0,>=4.0.0a3
Using cached async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting yarl<2.0,>=1.0
Using cached yarl-1.8.2-cp311-cp311-win_amd64.whl (55 kB)
Collecting frozenlist>=1.1.1
Using cached frozenlist-1.3.3-cp311-cp311-win_amd64.whl (32 kB)
Collecting aiosignal>=1.1.2
Using cached aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Collecting filelock
Using cached filelock-3.9.0-py3-none-any.whl (9.7 kB)
Collecting typing-extensions>=3.7.4.3
Using cached typing_extensions-4.4.0-py3-none-any.whl (26 kB)
Requirement already satisfied: six>=1.5 in d:\program files\python\lib\site-packages (from python-dateutil>=2.8.1->pandas) (1.16.0)
Requirement already satisfied: idna<4,>=2.5 in d:\program files\python\lib\site-packages (from requests->simpletransformers) (3.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in d:\program files\python\lib\site-packages (from requests->simpletransformers) (1.26.14)
Requirement already satisfied: certifi>=2017.4.17 in d:\program files\python\lib\site-packages (from requests->simpletransformers) (2022.12.7)
Collecting Click!=8.0.0,>=7.0
Using cached click-8.1.3-py3-none-any.whl (96 kB)
Collecting GitPython>=1.0.0
Using cached GitPython-3.1.30-py3-none-any.whl (184 kB)
Requirement already satisfied: psutil>=5.0.0 in d:\program files\python\lib\site-packages (from wandb>=0.10.32->simpletransformers) (5.9.4)
Collecting sentry-sdk>=1.0.0
Using cached sentry_sdk-1.14.0-py2.py3-none-any.whl (178 kB)
Collecting docker-pycreds>=0.4.0
Using cached docker_pycreds-0.4.0-py2.py3-none-any.whl (9.0 kB)
Collecting pathtools
Using cached pathtools-0.1.2-py3-none-any.whl
Collecting setproctitle
Using cached setproctitle-1.3.2-cp311-cp311-win_amd64.whl (11 kB)
Requirement already satisfied: setuptools in d:\program files\python\lib\site-packages (from wandb>=0.10.32->simpletransformers) (65.5.0)
Collecting appdirs>=1.4.3
Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting protobuf!=4.21.0,<5,>=3.19.0
Using cached protobuf-4.21.12-cp310-abi3-win_amd64.whl (527 kB)
Collecting joblib>=1.1.1
Using cached joblib-1.2.0-py3-none-any.whl (297 kB)
Collecting threadpoolctl>=2.0.0
Using cached threadpoolctl-3.1.0-py3-none-any.whl (14 kB)
Collecting altair>=3.2.0
Using cached altair-4.2.2-py3-none-any.whl (813 kB)
Collecting blinker>=1.0.0
Using cached blinker-1.5-py2.py3-none-any.whl (12 kB)
Collecting cachetools>=4.0
Using cached cachetools-5.3.0-py3-none-any.whl (9.3 kB)
Collecting importlib-metadata>=1.4
Using cached importlib_metadata-6.0.0-py3-none-any.whl (21 kB)
Collecting pillow>=6.2.0
Using cached Pillow-9.4.0-cp311-cp311-win_amd64.whl (2.5 MB)
Collecting protobuf!=4.21.0,<5,>=3.19.0
Using cached protobuf-3.20.3-py2.py3-none-any.whl (162 kB)
Collecting pympler>=0.9
Using cached Pympler-1.0.1-py3-none-any.whl (164 kB)
Collecting rich>=10.11.0
Using cached rich-13.3.1-py3-none-any.whl (239 kB)
Collecting semver
Using cached semver-2.13.0-py2.py3-none-any.whl (12 kB)
Collecting toml
Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting tzlocal>=1.1
Using cached tzlocal-4.2-py3-none-any.whl (19 kB)
Collecting validators>=0.2
Using cached validators-0.20.0-py3-none-any.whl
Collecting pydeck>=0.1.dev5
Using cached pydeck-0.8.0-py2.py3-none-any.whl (4.7 MB)
Requirement already satisfied: tornado>=5.0 in d:\program files\python\lib\site-packages (from streamlit->simpletransformers) (6.2)
Collecting watchdog
Using cached watchdog-2.2.1-py3-none-win_amd64.whl (78 kB)
Collecting absl-py>=0.4
Using cached absl_py-1.4.0-py3-none-any.whl (126 kB)
Collecting grpcio>=1.24.3
Using cached grpcio-1.51.1-cp311-cp311-win_amd64.whl (3.7 MB)
Collecting google-auth<3,>=1.6.3
Using cached google_auth-2.16.0-py2.py3-none-any.whl (177 kB)
Collecting google-auth-oauthlib<0.5,>=0.4.1
Using cached google_auth_oauthlib-0.4.6-py2.py3-none-any.whl (18 kB)
Collecting markdown>=2.6.8
Using cached Markdown-3.4.1-py3-none-any.whl (93 kB)
Collecting tensorboard-data-server<0.7.0,>=0.6.0
Using cached tensorboard_data_server-0.6.1-py3-none-any.whl (2.4 kB)
Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in d:\program files\python\lib\site-packages (from tensorboard->simpletransformers) (1.8.1)
Collecting werkzeug>=1.0.1
Using cached Werkzeug-2.2.2-py3-none-any.whl (232 kB)
Collecting wheel>=0.26
Using cached wheel-0.38.4-py3-none-any.whl (36 kB)
Collecting entrypoints
Using cached entrypoints-0.4-py3-none-any.whl (5.3 kB)
Requirement already satisfied: jinja2 in d:\program files\python\lib\site-packages (from altair>=3.2.0->streamlit->simpletransformers) (3.1.2)
Requirement already satisfied: jsonschema>=3.0 in d:\program files\python\lib\site-packages (from altair>=3.2.0->streamlit->simpletransformers) (4.17.3)
Collecting toolz
Using cached toolz-0.12.0-py3-none-any.whl (55 kB)
Collecting gitdb<5,>=4.0.1
Using cached gitdb-4.0.10-py3-none-any.whl (62 kB)
Collecting pyasn1-modules>=0.2.1
Using cached pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
Collecting rsa<5,>=3.1.4
Using cached rsa-4.9-py3-none-any.whl (34 kB)
Collecting requests-oauthlib>=0.7.0
Using cached requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB)
Collecting zipp>=0.5
Using cached zipp-3.12.0-py3-none-any.whl (6.6 kB)
Collecting markdown-it-py<3.0.0,>=2.1.0
Using cached markdown_it_py-2.1.0-py3-none-any.whl (84 kB)
Requirement already satisfied: pygments<3.0.0,>=2.14.0 in d:\program files\python\lib\site-packages (from rich>=10.11.0->streamlit->simpletransformers) (2.14.0)
Collecting pytz-deprecation-shim
Using cached pytz_deprecation_shim-0.1.0.post0-py2.py3-none-any.whl (15 kB)
Collecting tzdata
Using cached tzdata-2022.7-py2.py3-none-any.whl (340 kB)
Requirement already satisfied: decorator>=3.4.0 in d:\program files\python\lib\site-packages (from validators>=0.2->streamlit->simpletransformers) (5.1.1)
Requirement already satisfied: MarkupSafe>=2.1.1 in d:\program files\python\lib\site-packages (from werkzeug>=1.0.1->tensorboard->simpletransformers) (2.1.2)
Collecting smmap<6,>=3.0.1
Using cached smmap-5.0.0-py3-none-any.whl (24 kB)
Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in d:\program files\python\lib\site-packages (from jsonschema>=3.0->altair>=3.2.0->streamlit->simpletransformers) (0.19.3)
Collecting mdurl~=0.1
Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Collecting pyasn1<0.5.0,>=0.4.6
Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Collecting oauthlib>=3.0.0
Using cached oauthlib-3.2.2-py3-none-any.whl (151 kB)
Installing collected packages: sentencepiece, pyasn1, pathtools, appdirs, zipp, xxhash, wheel, werkzeug, watchdog, validators, tzdata, typing-extensions, tqdm, toolz, toml, threadpoolctl, tensorboard-data-server, smmap, setproctitle, sentry-sdk, semver, rsa, regex, pympler, pyasn1-modules, protobuf, pillow, oauthlib, numpy, multidict, mdurl, markdown, joblib, grpcio, fsspec, frozenlist, filelock, entrypoints, docker-pycreds, dill, Click, charset-normalizer, cachetools, blinker, async-timeout, absl-py, yarl, scipy, pytz-deprecation-shim, pydeck, pyarrow, pandas, multiprocess, markdown-it-py, importlib-metadata, google-auth, gitdb, aiosignal, tzlocal, scikit-learn, rich, responses, requests-oauthlib, huggingface-hub, GitPython, altair, aiohttp, wandb, transformers, streamlit, seqeval, google-auth-oauthlib, tensorboard, datasets, simpletransformers
Running setup.py install for sentencepiece: started
Running setup.py install for sentencepiece: finished with status 'error'
Note: you may need to restart the kernel to use updated packages.
DEPRECATION: sentencepiece is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
error: subprocess-exited-with-error
Running setup.py install for sentencepiece did not run successfully.
exit code: 1
[15 lines of output]
running install
D:\Program Files\Python\Lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\sentencepiece
copying src\sentencepiece/__init__.py -> build\lib.win-amd64-cpython-311\sentencepiece
copying src\sentencepiece/_version.py -> build\lib.win-amd64-cpython-311\sentencepiece
copying src\sentencepiece/sentencepiece_model_pb2.py -> build\lib.win-amd64-cpython-311\sentencepiece
copying src\sentencepiece/sentencepiece_pb2.py -> build\lib.win-amd64-cpython-311\sentencepiece
running build_ext
building 'sentencepiece._sentencepiece' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
Encountered error while trying to install package.
sentencepiece
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
I'm new to Python, please help. System Windows 10, with MS VC++ installed & updated.
Welcome to Python! The error message says what the problem is:
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
Try to pip install every package separately so you have a better picture of which of those requires VC++14. And don't forget to update your VC of course!
For error message of this type, though the error points to VC++, on the contrary, to resolve
Update pip: pip install --upgrade pip
Install version of sentencepiece compatible with your Python version.
For Python 3.10, see Pip install results in this error " cl.exe' failed with exit code 2"
Others worth giving a try:
Give pipwin a try.
PS: pipwin is essentially a complementary tool for pip on Windows. Beware: pipwin installs unofficial python package binaries for windows
You may consider having MS Build: Visual C++ build tools, and check the options "C++/CLI support". (NB: might require hefty GB install!)
For MS Build, you might need to also install or upgrade pip install setuptools --upgrade

Running into errors with greenlet when pip installing certain packages

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:

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

Error installing apache-airflow: "Could not build wheels for setproctitle which use PEP 517 and cannot be installed directly"

I'm trying to find some help installing apache-airflow.
I am on MacOS 10.15.7, Python version 3.8.2, and I keep getting an error:
ERROR: Could not build wheels for setproctitle which use PEP 517 and cannot be installed directly
I have tried using earlier versions of pip and python to no avail.
Does anyone know what I can do in this situation? I have looked at all the stack overflow questions that popped up with these search terms but none have presented a solution that worked for me so far.
Any help would be much appreciated.
>$ pip install apache-airflow
Collecting apache-airflow
Using cached apache_airflow-2.0.1-py3-none-any.whl (4.5 MB)
Requirement already satisfied: pyjwt<2 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (1.7.1)
Collecting flask-caching<2.0.0,>=1.5.0
Using cached Flask_Caching-1.9.0-py2.py3-none-any.whl (33 kB)
Requirement already satisfied: jinja2<2.12.0,>=2.10.1 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (2.10.3)
Requirement already satisfied: iso8601>=0.1.12 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (0.1.12)
Requirement already satisfied: cryptography>=0.9.3 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (3.4.6)
Requirement already satisfied: colorlog>=4.0.2 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (4.0.2)
Requirement already satisfied: unicodecsv>=0.14.1 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (0.14.1)
Collecting apache-airflow-providers-ftp
Using cached apache_airflow_providers_ftp-1.0.1-py3-none-any.whl (14 kB)
Requirement already satisfied: dill<0.4,>=0.2.2 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (0.3.1.1)
Collecting sqlalchemy<2,>=1.3.18
Using cached SQLAlchemy-1.3.23-cp38-cp38-macosx_10_14_x86_64.whl (1.2 MB)
Requirement already satisfied: alembic<2.0,>=1.2 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (1.4.2)
Collecting sqlalchemy-jsonfield~=1.0
Using cached SQLAlchemy_JSONField-1.0.0-py3-none-any.whl (10 kB)
Collecting importlib-resources~=1.4
Using cached importlib_resources-1.5.0-py2.py3-none-any.whl (21 kB)
Collecting requests>=2.20.0
Using cached requests-2.25.1-py2.py3-none-any.whl (61 kB)
Requirement already satisfied: python-dateutil<3,>=2.3 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (2.8.1)
Collecting apache-airflow-providers-imap
Using cached apache_airflow_providers_imap-1.0.1-py3-none-any.whl (15 kB)
Requirement already satisfied: markupsafe<2.0,>=1.1.1 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (1.1.1)
Collecting python-slugify<5.0,>=3.0.0
Using cached python_slugify-4.0.1-py2.py3-none-any.whl
Collecting python-daemon>=2.2.4
Using cached python_daemon-2.3.0-py2.py3-none-any.whl (35 kB)
Collecting tenacity~=6.2.0
Using cached tenacity-6.2.0-py2.py3-none-any.whl (24 kB)
Collecting flask-appbuilder~=3.1.1
Using cached Flask_AppBuilder-3.1.1-py3-none-any.whl (1.7 MB)
Collecting cattrs~=1.1
Using cached cattrs-1.3.0-py3-none-any.whl (18 kB)
Requirement already satisfied: flask-login<0.5,>=0.3 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (0.4.1)
Collecting setproctitle<2,>=1.1.8
Using cached setproctitle-1.2.2.tar.gz (23 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Collecting python3-openid~=3.2
Using cached python3_openid-3.2.0-py3-none-any.whl (133 kB)
Collecting attrs<21.0,>=20.0
Using cached attrs-20.3.0-py2.py3-none-any.whl (49 kB)
Collecting rich==9.2.0
Using cached rich-9.2.0-py3-none-any.whl (164 kB)
Collecting werkzeug>=1.0.1,~=1.0
Using cached Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB)
Requirement already satisfied: tabulate<0.9,>=0.7.5 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (0.8.6)
Requirement already satisfied: gunicorn<20.0,>=19.5.0 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (19.10.0)
Collecting python-nvd3~=0.15.0
Using cached python_nvd3-0.15.0-py3-none-any.whl
Requirement already satisfied: importlib-metadata~=1.7 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (1.7.0)
Requirement already satisfied: lockfile>=0.12.2 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (0.12.2)
Collecting psutil<6.0.0,>=4.2.0
Using cached psutil-5.8.0-cp38-cp38-macosx_10_9_x86_64.whl (236 kB)
Requirement already satisfied: croniter<0.4,>=0.3.17 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (0.3.31)
Collecting apache-airflow-providers-http
Using cached apache_airflow_providers_http-1.1.0-py3-none-any.whl (20 kB)
Requirement already satisfied: pygments<3.0,>=2.0.1 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (2.6.1)
Requirement already satisfied: jsonschema~=3.0 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (3.2.0)
Requirement already satisfied: graphviz>=0.12 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (0.13.2)
Requirement already satisfied: argcomplete~=1.10 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (1.11.1)
Collecting connexion[flask,swagger-ui]<3,>=2.6.0
Using cached connexion-2.7.0-py2.py3-none-any.whl (77 kB)
Requirement already satisfied: lazy-object-proxy in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (1.4.3)
Collecting apache-airflow-providers-sqlite
Using cached apache_airflow_providers_sqlite-1.0.1-py3-none-any.whl (14 kB)
Collecting marshmallow-oneofschema>=2.0.1
Using cached marshmallow_oneofschema-2.1.0-py2.py3-none-any.whl (5.7 kB)
Requirement already satisfied: termcolor>=1.1.0 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (1.1.0)
Collecting pendulum~=2.0
Using cached pendulum-2.1.2-cp38-cp38-macosx_10_15_x86_64.whl (124 kB)
Requirement already satisfied: pandas<2.0,>=0.17.1 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (0.25.3)
Requirement already satisfied: markdown<4.0,>=2.5.2 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (2.6.11)
Requirement already satisfied: flask-wtf<0.15,>=0.14.3 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (0.14.3)
Requirement already satisfied: cached-property~=1.5 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (1.5.1)
Requirement already satisfied: flask<2.0,>=1.1.0 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (1.1.1)
Requirement already satisfied: itsdangerous>=1.1.0 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (1.1.0)
Requirement already satisfied: colorama<0.5.0,>=0.4.0 in ./airflow-venv/lib/python3.8/site-packages (from rich==9.2.0->apache-airflow) (0.4.3)
Collecting typing-extensions<4.0.0,>=3.7.4
Using cached typing_extensions-3.7.4.3-py3-none-any.whl (22 kB)
Collecting commonmark<0.10.0,>=0.9.0
Using cached commonmark-0.9.1-py2.py3-none-any.whl (51 kB)
Requirement already satisfied: Mako in ./airflow-venv/lib/python3.8/site-packages (from alembic<2.0,>=1.2->apache-airflow) (1.1.2)
Requirement already satisfied: python-editor>=0.3 in ./airflow-venv/lib/python3.8/site-packages (from alembic<2.0,>=1.2->apache-airflow) (1.0.4)
Requirement already satisfied: PyYAML>=5.1 in ./airflow-venv/lib/python3.8/site-packages (from connexion[flask,swagger-ui]<3,>=2.6.0->apache-airflow) (5.3.1)
Collecting openapi-spec-validator>=0.2.4
Using cached openapi_spec_validator-0.3.0-py3-none-any.whl (31 kB)
Collecting inflection>=0.3.1
Using cached inflection-0.5.1-py2.py3-none-any.whl (9.5 kB)
Collecting clickclick>=1.2
Using cached clickclick-20.10.2-py2.py3-none-any.whl (7.4 kB)
Collecting swagger-ui-bundle>=0.0.2
Using cached swagger_ui_bundle-0.0.8-py3-none-any.whl (3.8 MB)
Requirement already satisfied: click>=4.0 in ./airflow-venv/lib/python3.8/site-packages (from clickclick>=1.2->connexion[flask,swagger-ui]<3,>=2.6.0->apache-airflow) (6.7)
Requirement already satisfied: cffi>=1.12 in ./airflow-venv/lib/python3.8/site-packages (from cryptography>=0.9.3->apache-airflow) (1.14.5)
Requirement already satisfied: pycparser in ./airflow-venv/lib/python3.8/site-packages (from cffi>=1.12->cryptography>=0.9.3->apache-airflow) (2.20)
Collecting prison<1.0.0,>=0.1.3
Using cached prison-0.1.3-py2.py3-none-any.whl (5.8 kB)
Requirement already satisfied: marshmallow-sqlalchemy<0.24.0,>=0.22.0 in ./airflow-venv/lib/python3.8/site-packages (from flask-appbuilder~=3.1.1->apache-airflow) (0.22.3)
Collecting apispec[yaml]<4,>=3.3
Using cached apispec-3.3.2-py2.py3-none-any.whl (27 kB)
Requirement already satisfied: marshmallow<4,>=3 in ./airflow-venv/lib/python3.8/site-packages (from flask-appbuilder~=3.1.1->apache-airflow) (3.5.1)
Collecting email-validator<2,>=1.0.5
Using cached email_validator-1.1.2-py2.py3-none-any.whl (17 kB)
Requirement already satisfied: marshmallow-enum<2,>=1.5.1 in ./airflow-venv/lib/python3.8/site-packages (from flask-appbuilder~=3.1.1->apache-airflow) (1.5.1)
Requirement already satisfied: Flask-JWT-Extended<4,>=3.18 in ./airflow-venv/lib/python3.8/site-packages (from flask-appbuilder~=3.1.1->apache-airflow) (3.24.1)
Requirement already satisfied: Flask-OpenID<2,>=1.2.5 in ./airflow-venv/lib/python3.8/site-packages (from flask-appbuilder~=3.1.1->apache-airflow) (1.2.5)
Requirement already satisfied: Flask-Babel<2,>=1 in ./airflow-venv/lib/python3.8/site-packages (from flask-appbuilder~=3.1.1->apache-airflow) (1.0.0)
Requirement already satisfied: Flask-SQLAlchemy<3,>=2.4 in ./airflow-venv/lib/python3.8/site-packages (from flask-appbuilder~=3.1.1->apache-airflow) (2.4.1)
Requirement already satisfied: sqlalchemy-utils<1,>=0.32.21 in ./airflow-venv/lib/python3.8/site-packages (from flask-appbuilder~=3.1.1->apache-airflow) (0.36.3)
Requirement already satisfied: idna>=2.0.0 in ./airflow-venv/lib/python3.8/site-packages (from email-validator<2,>=1.0.5->flask-appbuilder~=3.1.1->apache-airflow) (2.9)
Collecting dnspython>=1.15.0
Using cached dnspython-2.1.0-py3-none-any.whl (241 kB)
Requirement already satisfied: pytz in ./airflow-venv/lib/python3.8/site-packages (from Flask-Babel<2,>=1->flask-appbuilder~=3.1.1->apache-airflow) (2019.3)
Requirement already satisfied: Babel>=2.3 in ./airflow-venv/lib/python3.8/site-packages (from Flask-Babel<2,>=1->flask-appbuilder~=3.1.1->apache-airflow) (2.8.0)
Requirement already satisfied: six in ./airflow-venv/lib/python3.8/site-packages (from Flask-JWT-Extended<4,>=3.18->flask-appbuilder~=3.1.1->apache-airflow) (1.14.0)
Requirement already satisfied: WTForms in ./airflow-venv/lib/python3.8/site-packages (from flask-wtf<0.15,>=0.14.3->apache-airflow) (2.2.1)
Requirement already satisfied: zipp>=0.5 in ./airflow-venv/lib/python3.8/site-packages (from importlib-metadata~=1.7->apache-airflow) (3.4.0)
Requirement already satisfied: setuptools in ./airflow-venv/lib/python3.8/site-packages (from jsonschema~=3.0->apache-airflow) (54.0.0)
Requirement already satisfied: pyrsistent>=0.14.0 in ./airflow-venv/lib/python3.8/site-packages (from jsonschema~=3.0->apache-airflow) (0.15.7)
Collecting openapi-schema-validator
Using cached openapi_schema_validator-0.1.4-py3-none-any.whl (7.8 kB)
Requirement already satisfied: numpy>=1.13.3 in ./airflow-venv/lib/python3.8/site-packages (from pandas<2.0,>=0.17.1->apache-airflow) (1.18.2)
Collecting pytzdata>=2020.1
Using cached pytzdata-2020.1-py2.py3-none-any.whl (489 kB)
Requirement already satisfied: docutils in ./airflow-venv/lib/python3.8/site-packages (from python-daemon>=2.2.4->apache-airflow) (0.16)
Collecting text-unidecode>=1.3
Using cached text_unidecode-1.3-py2.py3-none-any.whl (78 kB)
Requirement already satisfied: defusedxml in ./airflow-venv/lib/python3.8/site-packages (from python3-openid~=3.2->apache-airflow) (0.6.0)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./airflow-venv/lib/python3.8/site-packages (from requests>=2.20.0->apache-airflow) (1.25.8)
Requirement already satisfied: chardet<5,>=3.0.2 in ./airflow-venv/lib/python3.8/site-packages (from requests>=2.20.0->apache-airflow) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in ./airflow-venv/lib/python3.8/site-packages (from requests>=2.20.0->apache-airflow) (2019.11.28)
Collecting isodate
Using cached isodate-0.6.0-py2.py3-none-any.whl (45 kB)
Building wheels for collected packages: setproctitle
Building wheel for setproctitle (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /Users/orange/airflow_testing/airflow-venv/bin/python /Users/orange/airflow_testing/airflow-venv/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /var/folders/gw/f5ssjh4s74x8m0dzzxdj09m40000gn/T/tmp1bbqxe6_
cwd: /private/var/folders/gw/f5ssjh4s74x8m0dzzxdj09m40000gn/T/pip-install-slsvb38c/setproctitle_46b9decf51e14932ad0abe665916f05b
Complete output (119 lines):
running bdist_wheel
running build
running build_ext
building 'setproctitle' extension
creating build
creating build/temp.macosx-10.14.6-x86_64-3.8
creating build/temp.macosx-10.14.6-x86_64-3.8/src
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -DSPT_VERSION=1.2.2 -D__darwin__=1 -I/Users/orange/airflow_testing/airflow-venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c src/setproctitle.c -o build/temp.macosx-10.14.6-x86_64-3.8/src/setproctitle.o
In file included from src/setproctitle.c:14:
In file included from src/spt.h:15:
In file included from src/spt_python.h:16:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:11:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include/limits.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/limits.h:63:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h:807:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from src/setproctitle.c:14:
In file included from src/spt.h:15:
In file included from src/spt_python.h:16:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:11:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include/limits.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/limits.h:64:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/machine/limits.h:8:2: error: architecture not supported
#error architecture not supported
^
In file included from src/setproctitle.c:14:
In file included from src/spt.h:15:
In file included from src/spt_python.h:16:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:71:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:33:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from src/setproctitle.c:14:
In file included from src/spt.h:15:
In file included from src/spt_python.h:16:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:71:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_blksize_t; /* preferred block size */
^
note: '__int128_t' declared here
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_dev_t; /* dev_t */
^
note: '__int128_t' declared here
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
^
note: '__uint128_t' declared here
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
^
note: '__uint128_t' declared here
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'; did you mean '__uint128_t'?
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
^
note: '__uint128_t' declared here
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
^
note: '__int128_t' declared here
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
^
note: '__uint128_t' declared here
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
^
note: '__int128_t' declared here
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
^
note: '__uint128_t' declared here
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^
note: '__uint128_t' declared here
In file included from src/setproctitle.c:14:
In file included from src/spt.h:15:
In file included from src/spt_python.h:16:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:71:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_types.h:43:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_wctype_t;
^
note: '__uint128_t' declared here
In file included from src/setproctitle.c:14:
In file included from src/spt.h:15:
In file included from src/spt_python.h:16:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:75:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_va_list.h:31:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h:37:2: error: architecture not supported
#error architecture not supported
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
error: command 'clang' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for setproctitle
Failed to build setproctitle
ERROR: Could not build wheels for setproctitle which use PEP 517 and cannot be installed directly
I am on MacOS 10.15.7 Python version 3.8.2
I'm guessing you used the Python 3 bundled/pre-installed with macOS Catalina.
$ which python3
/usr/bin/python3
$ /usr/bin/python3 -V
Python 3.8.2
$ /usr/bin/python3 -m venv airflow-venv
$ source ./airflow-venv/bin/activate
(airflow-venv) $ python -V
Python 3.8.2
(airflow-venv) $ pip -V
pip 19.2.3 from /path/to/airflow-venv/lib/python3.8/site-packages/pip (python 3.8)
(airflow-venv) $ pip install apache-airflow
With those commands above, I could reproduce the same error messages about:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h:37:2: error: architecture not supported
#error architecture not supported
^
The bundled Python 3.8.2 is known to cause those kind of problems when installing certain Python packages that require compilation of some C code. I find that it's better to use Python provided by other sources:
From python.org official downloads
From Homebrew
From Anaconda
Check and pick whichever one you feel you are most comfortable with. I personally use Homebrew:
# Install Homebrew (https://brew.sh/)
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install Python3.8
$ brew install python#3.8
$ brew link python#3.8
While the latest Python you can install now is 3.9, the installation guide for apache-airflow mentions which Python and pip versions are supported:
Please note that with respect to Python 3 support, Airflow 2.0.0 has been tested with Python 3.6, 3.7, and 3.8, but does not yet support Python 3.9.
There was a recent (November 2020) change in resolver, so currently only 20.2.4 version is officially supported, although you might have a success with 20.3.3+ version (to be confirmed if all initial issues from pip 20.3.0 release have been fixed in 20.3.3). In order to install Airflow you need to either downgrade pip to version 20.2.4 pip install --upgrade pip==20.2.4
So follow those recommendations:
$ which python3
/usr/local/bin/python3
$ python3 -V
Python 3.8.8
$ python3 -m venv airflow-venv
$ source ./airflow-venv/bin/activate
(airflow-venv) $ pip -V
pip 20.2.3 from /path/to/airflow-venv/lib/python3.8/site-packages/pip (python 3.8)
(airflow-venv) $ pip install --upgrade pip==20.2.4
...
Successfully uninstalled pip-20.2.3
Successfully installed pip-20.2.4
Then just install apache-airflow same as before:
(airflow-venv) $ pip install apache-airflow
For me ,same error occurred
Resolved using home-brew. probably default python was causing the problem.
Also use supported version of pip for airflow.I had to downgrade pip version
Uninstalling pip-21.1.1:
Successfully uninstalled pip-21.1.1
Successfully installed pip-20.2.4 :)
Even though this is an old thread. However, I'm still seeing XCodes default Python3 to be Python3.8.2.
The error architecture not supported error during installation
First of all. The error
#error architecture not supported
Can be fixed by setting export ARCHFLAGS="-arch x86_64" before you run pip install. Remember, this should be your architecture you enter here. Probably old MacBooks and the new M1 Macbooks should have a different value here.
The Python3.8.2 incompatibility with setproctitle: _Py_GetArgcArgv error
I managed to install it with the tip mentioned above. However, it still appears as mentioned in this topic that Python 3.8.2 is incompatible with setproctitle.
I am getting
Python 3.8.2 (default, Aug 25 2020, 09:23:57)
[Clang 12.0.0 (clang-1200.0.32.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import setproctitle
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dlopen(~/.venv/airflow_dev/lib/python3.8/site-packages/setproctitle.cpython-38-darwin.so, 2): Symbol not found: _Py_GetArgcArgv
Referenced from: ~/.venv/airflow_dev/lib/python3.8/site-packages/setproctitle.cpython-38-darwin.so
Expected in: flat namespace
in ~/.venv/airflow_dev/lib/python3.8/site-packages/setproctitle.cpython-38-darwin.so
So it appears the best solution is to upgrade your Python3.8 version to anything from 3.8.5 onwards.

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